Magento - list specific cms page link in left hand block - php

I want to list specific CMS pages LINKS to lefthand side of block in magento.
eg. suppose i have added 10 cms pages in admin and now i want to list 2 to 3 specific cmspages which i want. How can i do it ?

There are many ways to do this task using Widgets -
Process 1: We can add Widgets for specific CMS page as "CMS Page Link".
Magento provides the facility to add many kind of Widgets.
Process 2: We can create a Static block where we can put the Code for Link of CMS pages.
And we can call this Static Block using Widget on Left/Right Column or the position where we want.
Hope it'll be Helpful :)
Thanks.

Related

Topic List in Autonav Block

I'm working on a responsive navigation for a customer. I'm using concrete5.7's AutoNav block with a customized view template. The fullscreen overlay is working and lists links to the top-level pages. Under the first and second links (see attached image, I need the following:
First Navigation Link (Projects page): A topic_list that filters a page_list block on the Projects page.
Second Navigation Link (Services page): A list of its direct child pages.
Should I programmatically include the topic_list Block in my AutoNav custom view? Is it possible to access and list topics from the AutoNav block? I really don't know how to approach this. Any pointers would be much appreciated.
Maybe this add-on can help you: https://www.concrete5.org/marketplace/addons/mega-menu1
I didn't use or try it myself, but it seems to be possible to add stacks as submenu's. I guess these stacks could hold page_list/topic_list blocks.
Another approach could be to use page_list instead of the autonav. Create a topic structure with the same layout as your pages.
Or indeed programmatically adapt the autonav with a template, and check for level and topics to insert them as a submenu.

Magento - How to add the "images" tab (like it apears on product-edit) to category/ cms pages?

in short:
I want to be able to assign dynamic number of images to any page on the site,
but right now i have this option only when i edit products ("images" tab).
I want the same tab when i edit categories or cms pages as well.
Thanx in advance.

Widget or Plug-in? Building a theme and unsure how to approach optional content

I have a question regarding how best to build a widget/plug-in for WordPress.
I have tried to code this thing out but unfortunately to no avail but that's because I'm increasingly thinking I'm going about it the entirely wrong way.
This is what I'm trying to achieve:
I have built a theme from scratch. In this theme I have two content areas. The larger of the two contains the main content and the smaller of the two (proposed widget/plug-in) contains supplementary information (opening times, Facebook feed). I don't want this widget/plug-in to appear on every page and would like the ability to turn it on or off within the usual WordPress admin area.
The impression I am getting is that I can build the widget that contains the content I want (with necessary forms to change said content) but it is either on for ALL pages or off for ALL pages, no sort-of page specific functionality. That's where I'm thinking a plug-in would extend the functionality and allow me to be more page specific with it. That is my current set-up with a theme I'm running and plug-in I added (neither of which were coded by me) but I would like to repeat it as best as possible.
Would it be right to assume that widgets are not really designed to have page specific functionality and that function should be left down to a plug-in?
I appreciate this question asks nothing really in the way specific advice but I would just like an opinion or two on the best approach before I go away and create it - this is my main struggle at the moment.
Thanks for looking.
This can be done with the Jetpack plugin. Once activated you can choose what widgets display on what pages:
The Widget Visibility module enables you to configure widgets to appear only on certain pages (or be hidden on certain pages) by using the Visibility panel.
Visibility is controlled by five aspects: page type, category, tag, date, and author. For example, if you wanted the Archives widget to only appear on category archives and error pages, choose “Show” from the first dropdown and then add two rules: “Page is 404 Error Page” and “Category is All Category Pages.”
Originally posted here
It is also possible with the Display Widgets plugin.
This is a common problem. The usual remedy is to use an existing plugin that allows widgets to be tied to pages.
The 3 most popular plugins for this are:
JetPack
Per Page Widgets
Widget Logic

how to make drupal pages into menus and submenus like administrator menu

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.

WordPress: Assigning widgets to individual pages

Are there any plugins or hacks that allow assigning widgets to individual pages?
EDIT:
Using self-hosted (.org) 2.8.4
An example of use would be: when you're editing a page in the admin, you'd ideally have the ability to assign widgets to that specific page. The default WP behavior is more "all or nothing" in that you assign widgets to the global sidebar and that's it... all pages get the exact same set of widgets... no "per page" assignment of widgets.
The Widget Logic plugin essentially achieves the desired result with a backwards approach, but it doesn't seem to work with the Rich Text Widget plugin.
There are several good ones. Display Widgets is my favorite. Widget Locationizer is perhaps more robust, but takes longer to manage. You can't go wrong with either one.
Finally found the Widget Context plugin which does what I need.
I don't know of any plugins that would give this functionality, but you might want to look at page templates here: WP Page Templates
With this route its more of a hack, as you can't use the CMS backend to manage your widgets. You would have to manually cut and paste the code of the widget into your page.
How about WP Page Widget:
Select widgets for each page / post / custom post type. For every
single page / post / custom post type we can select which widgets to
show.
This does it "the right way", i.e. when you edit a page you can choose which widgets to show on that page.

Categories