I have an empty magento CMS page, literally nothing on it.
The reason why I need an empty page is because the theme installed has a fixed width, whereas I want to use the entire width of the page for a unique design.
The only problem I have is the fact that the navigation menu is not added by default when I select an empty CMS page. Also, if I simply copy and paste the nav menu from another page, the shopping basket does not update on the empty CMS page, but I need it to.
How do I add the theme's navigation menu to the CMS page?
Ben,
There are a few different ways to approach this. Is this unique CMS page the home page?
Option 1:
Set the CMS page to use a new 1column-custom layout where you can move the main blocks around to your hearts content.
To prove if this will work go into template/page/1column.phtml I am assuming you are looking to restructure the one column layout. Make a backup of the original file first and see if you can manipulate the .phtml file to get your desired result on the page you are working on.. If so, take your changes and place them into a new file named 1column-custom.phtml.
Then in the admin panel in the design update section of the desired cms page. You will place in the following code.
<reference name="root">
<action method="setTemplate"><template>page/1column-custom.phtml</template></action>
</reference>
Option 2:
Use a local.xml layout update to set the content block within the home page to your own template.
From the sounds of it option 1 would be more efficient.
Related
It has been a few years since I properly worked with WordPress. Now I have a proposal to build a WordPress site where every page has a custom design and only some areas of each page is editable.
The reason for this is to build a bespoke layout on each page which cannot be messed up by someone non-technical editing it in the CMS, except for small areas which they can customise.
e.g. A page contains one div which has some text in it, which can be edited in the WP admin backend, but the rest of the page cannot be edited.
Can this be done? How?
Edit: There needs to be multiple editable areas not just one. I know how to make custom pages/templates.
One method may be to create new page templates. Just create a new file in your main theme folder (or the templates folder if there is one). As long at the top of that file contains the line:
/*
Template Name: <your template name>
*/
You can design the page however you want. The data pulled from the admin section will go wherever you invoke
the_content();
The rest of the page can be hardcoded.
Then on the post edit page, on the right side (usually), you can choose the template with your template name for that page. It may be a good idea to copy the current post.php or single.php into your custom file and work from there.
For restricting access you can look at setting up user levels and keep your content contributors as "Authors" instead of "admins" so they can't change themes or edit settings.
(See https://codex.wordpress.org/User_Levels)
For creating specific unique pages with an area that gets changed you should look into custom Page Templates. You can create a page template by dropping a php file with the right naming structure into your theme hierarchy and it will get picked up by the back-end as template option when you create a page.
(See https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/)
I solved this problem using a plugin called Advanced Custom Fields which does exactly what I required.
I'd like to customize the layout for the result page of CatalogSearch.
I'd like to remove the pagination and all other tools on the page and show a much simpler page since we only have few products. Then I need to change how results are displayed to customize the size of images and add a rollover on images.
How can I do that?
By looking at the source code it calls $this->getProductListHtml().
The easiest way to determine which template files to edit, is to enable the "Template Path Hints" in your Magento Configuration.
To do this, do the following:
In your Magento Admin, go to System > Configuration > Developer
On the top left under Current Configuration Scope, select Main Website (or the name of the site you are trying to modify.)
Now on the right, set Template Path Hints to Yes and click Save Config
Go back to your frontend. Each section will now display the exact template you need to modify. NOTE: You should always copy the default template files to your own template directory, instead of modifying Magento's core theme.
Alternately, you can target each page in Magento using CSS. Magento assigns a unique class to each page's <body> tag
In your case, the Catalog Search Results page has a body class of catalogsearch-result-index. If you want to hide the toolbar on that page, you can add the following to your template's style.css file:
.catalogsearch-result-index .toolbar {
display: none;
}
My magento installation at http://parisera.com shows the homepage with different template (Modern) while the inner pages use the template that I need (default).
Where is the control to change the homepage template?
Go into the administration, click CMS->pages, there you'll find Homepage as one of the options. You can modify the layout by clicking its design tab.
I'am new to Drupal, i just want to create a website which contains pages like about us, contact us and other static information that may be changed after a long time.
Now i can create the pages and sub pages to main pages. The links are displaying on the top of the logo and the sub pages were showing on the side of the main page.
i installed the dhtml_menu module but not working.
are there any changes required to dhtml_menu module to make work for pages?
or
i need to use any other module?
please help me to solve this issue
Thanks.
Your question is pretty confusing. If you just want to display the pages in a tree just like the administration menu (which seems to be what you're asking), then you don't need any extra modules.
Just create your pages and put them all in the primary menu. Then, once your pages are created add the Primary links block (in Administer, Blocks) anywhere you want. That block will display the navigation tree of your pages, just like the administrator menu does.
edit
Oh, so you want the drop down menus? Then you don't want dhtml_menu (which will only prevent unneccessary page loading when you open pages), but need something like simplemenu. Create your primary links, goto Administer, Site Configuration, SimpleMenu and set the "Menu" setting to "< Primary links >". That will display a drop down menu bar to navigate through your site...
First i need to say thanks to wimvds. "Thankyou wimvds for your edit it take me to find more modules and themes".
found the solution in a theme "admire_grunge" the drop down menu needs to be defined in the themes it self.
found some more themes that work like this.
Thanks.
I would like to display a catergory page as my homepage rather than a CMS page as it seems to be difficult to get a CMS page to properly display items.
I have gone to
Url rewrite Management
and created a url-rewrite for a category
Then gone to
System|Configuration|Web|Default Pages|
and changed
Default Web URL
to my new url-rewrite from cms but I get a 404 error when I go to the root of my site. Is there a way to redirect the root to a category rather than a CMS page?
Here is an easier way to do it. Find out first the ID of the category. Then you go to "System > Configuration > Web > Default Pages" and enter the following for the "Default web url" option: catalog/category/view/id/50 (where 50 is the id of the category).
Note, in version 1.3.2.4 there is a bug in one of the core files. So if you use that see this fix first: http://www.magentocommerce.com/bug-tracking/issue?issue=6168
You can just add this to any CMS page (substitute the category ID that you want to display - you can find that in Admin->Catalog->Manage categories):
{{block type="catalog/product_list" category_id="8" template="catalog/product/list.phtml"}}
The idea with
"Default web url" option: catalog/category/view/id/50 (where 50 is the id of the category).
works very well also in version 1.9.2.4, but navigating to page 2 there is the name of the category missing:
domain.com//p/2
This is only a hint.
You'll have to edit or create a new page in the cms. then go to design tab and update the layout xml with a category information. Never done this but by looking at default home xml I guess this can be done. It could look something like this, but this is invented so you'll have to research.
<block type="catalog/category" name="home.catalog.category.5" alias="categ_5" template="catalog/category/id/5" after="cms_page">
<action method="addPriceBlockType">
<type>bundle</type>
</block>