By zoo on
I just need in every page a "see also" link to the corresponding page under a different content type.
content-type1
content-type2are my two content types, they have in common the same menu structure with the same mirrored page titles (es.: content-type1 has a page named "pagetitle", and content-type2 too has a page named "pagetitle").
How could I achieve this? Any help would be appreciated, thanks
zoo
Comments
You can put in links that show on specific pages
Create a block. Fill in its page field (near bottom) with the url of each page you want the block to show up on. Leave out a title for the block. Fill its body in with the 'see also' link. You might initialize the block to show up in the footer. This might be a pain if you have many many of these pages.
Hello sierrawayfarer, I'm
Hello sierrawayfarer, and thank You for your answer.
I'm harsh with php, but you perhaps know it? Which lines should I put along with the block in order to dynamically show the corresponding mirrored page of the other menu? (in fact since each menu has many pages it would be a long work to manually insert the corresponding link in the block).
Or maybe there are other ways...???
Thank You
zoo
Just a piece of php
You need just a snipped of php which I am not an expert at either but I sometimes borrow from others who are generous. In this case I am borrowing from this link and modifying it just a little. Here is the link: http://drupal.org/node/134425. Here is the php I borrowed and modified slightly:
------------------------
-----------------------
In the above code you will see your two content types or where they should go based upon your labeling of them. This piece of code goes in the 'Pages' field when you create the block. Be sure and hit the radio button above this field that says, "Show if the following PHP code returns TRUE (PHP-mode, experts only).". This means the block will show only on your two content types. You can initialize this block to show in the footer, header or sidebars. Read about this code further in the link. You don't really have to understand the code. Just make sure you put in the correct names of the content types you want the 'see also' links to show up in
Hello sierrawayfarer, Thank
Hello sierrawayfarer,
Thank You very much for your hint. I'll give it a try as soon as possible and I'll tell if it works for the purpose.
Happy new year!
zoo
Thank you!
I found this code snippet helpful for this very purpose. Thanks for sharing.
So this is how pages are
So this is how pages are related:
How to obtain i.e.: in every page1 the two other "see also" links?
Thank You
zoo