Posted on: 08/27/04 08:59am
By: tAng
Is there a way to link the headline to the show more link? I wanted users to click on the story headline, or click read more to be able to see the full page story if at all possible.
Also is there a way to pull current headlines in a block? I am looking to pull the last 10 headlines, but not ones that have already been archived.
Thanks!
Linking the headline and showing them
Posted on: 08/27/04 09:28am
By: eyecravedvd
There are a couple of ways of doing it.
In the story templates (storytext.thtml & featuredstorytext.thtml) do the following.
Version 1.3.9
<a href="{article_url}">{story_title}</a>
Version 1.3.8sr4 or older
<a href="{site_url}/article.php?story={story_id}">{story_title}</a>
Hope that helps.
Linking the headline and showing them
Posted on: 08/27/04 07:08pm
By: tAng
Got that to work thanks!
Next thing would have to be how can I allow geeklog to accept any HTML entered rather then update the config file with every line of code?
I am trying to add javascript inside an article and can not get it to accept the variables. Is there a shortcut on this?
Linking the headline and showing them
Posted on: 08/28/04 11:35am
By: Dirk
[QUOTE BY= tAng] Next thing would have to be how can I allow geeklog to accept any HTML entered rather then update the config file with every line of code?[/QUOTE]
You can't and, believe me, you don't want to do that ...
[QUOTE BY= tAng] I am trying to add javascript inside an article and can not get it to accept the variables. Is there a shortcut on this?[/QUOTE]
Adding the script
tag as well as the proper attributes (type
and language
) should be enough, I would think.
There have been, however, reports which seem to indicate that the kses filter we're using may sometimes filter out JavaScript code nonetheless.
Does the JavaScript really have to be (all) in the story's text? Could you not put it somewhere else where it doesn't have to go through the filter, e.g. in the header.thtml?
bye, Dirk