Sometimes in magento product links are listed in the following mode:
catalog/product/view/id/3/s/product-name/category/3/
which can be very inconvenient from the SEO point of view. To solve this issue you can force a canonical form of product url in following mode:
In theme/template/catalog/product/list replace all instances of
$_product->getProductUrl()
with
Mage::getUrl($_product->getUrlKey())
You know when you are using attribute(show,2) on some variable and you can’t understand levels of variable’s contents? I do, so i decided to tweak a bit this function.
All you need to do is open
lib\eztemplate\classes\eztemplateattributeoperator.php
and replace all instances of $spacing = str_repeat( “>”, $cur_level ); with $spacing = str_repeat( “==”, $cur_level );
Now it’s a bit more understandable.
Ecco come trovare il nodo corrente con ezPublish se vi trovate nel pageLayout:
{def $currNode=fetch( content, node, hash( 'node_id', $module_result.node_id) )}
All’interno dello script aggiungere
debugbreak('[email protected]');
Dove 192.168.0.17 è indirizzo ip su cui è in essecuzione phped (localhost nel caso in cui fate il tunneling con putty)
{$node.object.data_map.sfondopagina.content[original].full_path|ezroot}
Nella cartella “.settings” (che si trova nel vostro progetto) aprire il file “org.eclipse.core.resources.prefs” ed aggiungere dentro seguente testo
eclipse.preferences.version=1
encoding/ =UTF-8
Come convertire le entità html sotto android:
Unico modo fino ad adesso che ho trovato è seguente (veeeery lame)
Continua…
Più di una volta mi è capitato questo errore mentre sviluppavo per android. La via più veloce per risolverlo sembrerebbe di essere quella di riavviare il servizio adb con il commando
adb kill-server && adb start-server
Funzione per la conversione dalla unixtime a date time
Continua…
Piccolo snipplet per convertire una data in unixtime in un formato “umano”.
Continua…