&Itemid eCommerce with JM-internet

More
4 years 2 months ago - 4 years 2 months ago #8502 by jabatec
jabatec created the topic: &Itemid eCommerce with JM-internet
Hi,
I have an Hikashop eCommerce with JM-internet template. ( www.bathshop.es )
For style,(.css, .less) it is very usefull work with active variables as 'itemid', 'layout', 'task',
$Itemid allow us identified each page with you id menu.

For this, I am working with default.php into mytemplate-jm-internet/tpl/

//Code detecting variables
$itemid = $app->input->getCmd('Itemid', '');
$layout = $app->input->getCmd('layout', '');
etc...

but getCmd not work

is it possible obtain Itemid variable for insert into class body of JM-internet?

Thanks in advance
Javier
Last Edit: 4 years 2 months ago by jabatec.

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #8503 by marcin
marcin replied the topic: &Itemid eCommerce with JM-internet
Hello,

You can preview the code from the Protostar template. It is a default Joomla 3 template available in each Joomla 3 package.

1) Detecting variables



2) Body class:



Regards,
Marcin
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.328 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.