"Related" Templates similar to Teaser

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

"Related" Templates similar to Teaser

Post by jsw_nz »

Hi Guys
Been away for awhile so I need to refresh my memory regarding the {RELATED} tag.
Does it support 'templates' or is there a custom {RT} that returns a list of related articles
- suitable for formatting... that acts like the {RELATED} tag

FORMAT
What I am trying to do is to list related articles with mini thumbnail of (1) article image,(2) css styled title and (3)and link.

BEHAVIOR
It would behave like a teaser - but automatically is updated when a new article (using same related *keyword*) gets
added to the CMS. My memory of teasers is that they are manually set.

Hope this is clear enough to start discussion
kind regards
jsw_nz
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Re: "Related" Templates similar to Teaser

Post by pepe »

Hi John,

the contentpart "teaser" should be tailor-made to your needs...
have a closer look into the "hidden" menu-sections of the contentpart teaser, if you do NOT choose the manual sortorder!
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: "Related" Templates similar to Teaser

Post by jsw_nz »

Hi Pepe!

Good to hear from you - one of the faithful wcms'ers.
Not exactly sure about what you mention - unless its a newer release of the PHPWCMS
I think I am running 1.4.5

In Teaser CP - are you referring to this:
Image

the drop down selector looks like this:
Image

...so I am not finding "hidden" menu-sections as you mention
- unless I am missing something

cheers
:D
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: "Related" Templates similar to Teaser

Post by update »

hidden menu sections = dropdown menu ;)
Try RELATEDX- it is really cool and has all you need :)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: "Related" Templates similar to Teaser

Post by jsw_nz »

Hi Claus
Another of the faithful - :D

I was looking at Knut's RT
- but it does not select the image itself
- a selection process that requires de-serialization...
- if worse comes to worse - I will hack it - to get the image thumb in there

the output would be a series of float:left divs with mini-thumbnail and cufon css title - with linkage
at least that's the idea

cheers
-john-
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Re: "Related" Templates similar to Teaser

Post by Oliver Georgi »

use keywords (tags) in the articles (as needed for the old {RELATED}, then use the teaser CP with the tags should be used to filter "related" contents.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Re: "Related" Templates similar to Teaser

Post by pepe »

Try another selection than "manual"... ( lets say: change date, ... ) and you will see, what happens ;-)
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: "Related" Templates similar to Teaser

Post by update »

Oliver Georgi wrote:use keywords (tags) in the articles (as needed for the old {RELATED}, then use the teaser CP with the tags should be used to filter "related" contents.
AAAHA! I will give it a try later :)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: "Related" Templates similar to Teaser

Post by jsw_nz »

Thanks Guys!

Oliver - thanks for that tip
- I never realized you could do this!
- Still have an issue however.

Is there any way to exclude the current article in the final output?
This is the nice way related works - every other article with *keyword* except the current article.

Cheers
jsw_nz :D

UPDATE: Now sorted - selecting a category (in menu items) for the article >>> current article is excluded.
menu-sections - thanks Pepe
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Re: "Related" Templates similar to Teaser

Post by pepe »

Less than 12 hours... and all problems are "history"... what a great forum :D

Best wishes to NZ from "good ole europe" :D
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: "Related" Templates similar to Teaser

Post by jsw_nz »

Less than 12 hours... and all problems are "history"... what a great forum
couldn't have said it better - thanks to Pepe :D , Oliver :D , and Claus :D

all the best from Lake Hawea - NZ
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Re: "Related" Templates similar to Teaser

Post by pepe »

Oh boy,
what a paradise this Lake Hawea district is... a real dream: http://www.google.de/search?q=lake+hawe ... 26&bih=668

And i'm sitting here in my small "office", looking through the closed windows into a heavy rain ... :roll: :cry: :(
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: "Related" Templates similar to Teaser

Post by jsw_nz »

Cheers Pepe
Well s a matter of fact its windy here tonight with a light rain - so not always like paradise :wink:

got another question related to teaser templates themselves.....
I am trying to create teaser elements that output and populate the page with this behavior:
(1) mini --thumbnail (2) article title formatted with Cufon (3) link to article itself and (4) mini-thumb rollover >> popup ajax preview
(1-3) no problem - since teaser supports by default
(4) is the experimental part - the popup ajax preview shows larger version of article image, article title and article summary

I have the Jquery ajax working
so needing a way to retrieve article image, article title and article summary in list mode index.php?my-article-in-list mode....
(hope that makes sense - just trying to output a bare bones page - not unlike the teaser itself...)
might you have any ideas - you have always been an expert about these things

Image

here is the exisitng code:

Code: Select all

<a rel="html_popup_1.html" href="mydomain.com/index.php?76-moorehouse" class="personPopupTrigger"><img width="42" border="0" height="29" alt="" id="show_moorehouse_preview" src="img/site_showcase/show_moorehouse.gif" name="show_moorehouse">76 Moorhouse Avenue</a>
right now - the ajax call returns: rel="html_popup_1.html"
needing it to call a wcms expression - mydomain.com/index.php?76-moorehouse&listMode=true
not sure if it is possible - for now as a workaround I created separate preview pages which return image title summary
- a little extra work but at least this works.....

cheers
john
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Re: "Related" Templates similar to Teaser

Post by Oliver Georgi »

Stop using Cufon! Dead, slow! CSS @font-face works with all current browsers (including IE). Good start is FontSquirrel.

4) no need for Ajax if it is the same info as the teaser has. Use jQuery and hidden sections (CSS) in combination with FancyBox or other Lightbox-styled popover. If you really need Ajax to catch the full article have a look at this. Click on "Details ansehen". It will load the related article but using Ajax and some phpwcms default functionality to render only special content sections. What you see there is a jQuery script I have developed in combination with FancyBox. The script builds the Ajax calls dynamically and gets pages based on URL like this:

Code: Select all

http://www.kellpax.ch/index.php?aid=31&cmsgo_output_action=F-split_ajax--S-AJAX
The advantage: Google will index the normal article link. So indexing is working fine. All pages still accessible.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: "Related" Templates similar to Teaser

Post by jsw_nz »

Oliver
once again - big thanks - you have given me a list of new things to study....
many many thanks -
:)
Post Reply