Access on page from different menues

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
seitenzeit
New Member
New Member
Posts: 2
Joined: Sun May 24, 2015 1:14 pm

Access on page from different menues

Post by seitenzeit »

How can the same page be displayed in different menues?

Let's assume I have two menues, A and B with entries
A1, A2, A3, A4, A5 and
B1, B2, A3, B4, B5

As you can see, I want ONE page (A3) to be displayed in TWO different menues.

What I tried was to create page "B3" with content type "Internal Page Link" and "Destination Page" pointing to A3. (I also tried "Redirecting Link" with the URL set accordingly)

Both works fine: the original content page A3 is shown when clicking the entry in menu B. Except that the menue also changes from B to A, as A is the "correct" parent.

Changing the Target in the Options did work. "_blank" opens A3 in as expected in a new window, but this is not the desired behaviour. "_self" and "_parent" didn't work, too.

Of course I could copy the orginal content from A to B, but probably somebody knows a more elegant way to avoid duplicates?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Access on page from different menues

Post by Dr.CSS »

An internal link would work, it will link from b to a but you say you tried that so the question is, what are you really trying to do..?

more info = more help
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Access on page from different menues

Post by velden »

What you want to do isn't really possible in cmsms.

A page only has one position in the hierarchy tree.

So, you could indeed copy the page.
Or link content from the source page into the target page.
Module CGSimpleSmarty has a method which can do that for you (read module's help), however, you need to set it up yourself.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Access on page from different menues

Post by paulbaker »

Or another way: in each page which contains the same content, have just a call to a single global content block and edit the contents in Content > Global Content Blocks.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
seitenzeit
New Member
New Member
Posts: 2
Joined: Sun May 24, 2015 1:14 pm

Re: Access on page from different menues

Post by seitenzeit »

Thank you for your quick and helpful answers!

I'll have a look at CGSimpleSmarty later, as it seems to have additional useful features. And using global content blocks is also very clever (but as there are >60 pages with about 20 of them "double", it would mess up the clarity of the site's structure).

BTW: In the plain installation of CMS made simple, clicking on a "news" entry doesn't change the menu but diplays the content of the news in the currently open window (because news are not part of the hirarchy tree, I assum). Maybe this mechanism could be used, too.

For now, I will copy the affected pages and hope that their content won't change too often...
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Access on page from different menues

Post by Jo Morg »

"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “The Lounge”