How to create sub pages in magento? - magento

I am working on Magento. I want to create a sub pages of cms page and sub pages will be shown in sidebar Let me know how can I do this?
I want sub pages as given in screen-shot:- http://awesomescreenshot.com/09c5rfnr41

I would like to inform you that hierarchy feature is not available in Magento Community version.
But I feel that you can achieve your requirement by using this extension https://www.magentocommerce.com/magento-connect/page-summary-block.html
Thanks!

Follow these steps:
Login to admin and navigate to CMS -> Pages.
Create new page.
Add URL Key as main-url/sub-url for example if your main page url is aboutus then sub page will be look like aboutus/aboutus-sub
To add those links to left sidebar, you should create phtml file in your theme template folder and call that phtml file from appropriate xml file.
<reference name="left">

Related

Joomla Insert Content into product details

I use VirtueMart. I need to add some content to product details page to specific DIV. I cant only change template. I need to do this by php because it will be Joomla plugin.
Look at the override system for customizing Joomla, it also applies to Virtuemart. You can add code or simple html to the product details page and place it in the templates HTML folder (where overrides go).
If you only wish to have this on some products, you can have that product details file named something other than default.php and then it will be available to select as the layout to use in the Virtuemart product edit screen.

Magento Google tag manager manually

I have a website which is running on Magento. There i'd like to add a code inside the body tag of each page. Where can i find this on my website? Is this a single file or do i have to do this on every page.
Anything would be helpful.
You can add it in Magento backend:
Log into Magento backend;
Navigate to System→Configuration, under ‘General’ open ‘Design’,
scroll down and click to extend the Html Head section;
Paste the GTM Code into the field next to Miscellaneous Scripts;

adding slider in magento to cms page

{{block type="bannerslider/default" name="bannerslider.bannerslider" template="bannerslider/bannerslider.phtml" bannerslider_id="your_bannerslider_id"}}
I am trying to add a slider using the above code, to a cms page in Magento.
My banner id is called mySlider, so have done:
{{block type="bannerslider/default" name="bannerslider.bannerslider" template="bannerslider/bannerslider.phtml" bannerslider_id="mySlider"}}
Nothing shows.
I saw that someone recommended setting each banner to the day before it was creating but that didn't work either.
You should copy module files to your current template files. So that you have bannerslider/bannerslider.phtml in your templates folder.
Also look if slider is active and with slider content.
You should use the banner ID which is the number in the first column in the admin panel (under the section for managing the slider). What you are using now is simply the title.

In magento how to create a link in footer

I have created a CMS page named Shipping from my magento admin CMS->pages.Now i need to create a link in footer as shipping and have to link the shipping-CMS page to the link.How to create a link in magento footer?
just go to Open Admin panel and go to CMS>static block and Open footer_links static block and add new link to just like that
<li>YOUR CMS PAGE NAME</li>
Or open footer.phtml from app\design\frontend\YOUR_PACKAGE_NAME\YOUR_THEME_NAME\template\page\html
and add your link .

Magento: Update several pages with a different tracking code

I have to put some Tracking code on several pages: some category pages, homepage, cart and success page. Whats the best way to accomplish that?
I thought:
homepage --> place the code in CMS -> pages -> home
success --> edit the success.phtml
cart --> edit the cart.phtml
categories -> create a CMS block --> place layout update in the concerning category page to load CMS block
But it looks like it is just a mess because for every code I have another solution. What would you suggest to get it done? Did I miss a better solution?
Thank you,
Hannes
If it's the same tracking code for each one, you could
Create a .phtml file containing the code
Add the file to the relevant hard pages (success, cart) using your layout xml files
Add the file to the relevant soft pages (home, categories) using the custom design tab / custom layout update area.
If the code changes based on the page, then you may need to create a new module with a block that alters the tracking code according to a parameter you include in the layout.
You can include a tracking script using the available Magento configurations fields.
Go to System > Configuration > Design
Under the HTML Head section, insert your tracking script into the Miscellaneous Scripts field.
Save Config, and clear your Magento caches.
Alternatively if you want it in the Footer instead, look under the Footer section and use the Miscellaneous HTML box there.

Resources