Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
linking to a section and category to show in an iframe
So I want to link to an iframe to display some articles contained within a certain section and category – but can’t figure it out at all.
Category links seem to be formed like this: www.domain.com/category/catname/
Category links seem to be formed like this: www.domain.com/sectionname/
Is there a way to link like this: www.domain.com/sectionname/catname/ ?
Offline
Re: linking to a section and category to show in an iframe
OK – I’m not sure if I’m understanding the txp semantics correctly… what I am trying to do it link the iframe to a txp section and display an article list from a specific category in that iframe… is this possible?
Offline
Re: linking to a section and category to show in an iframe
Hi tye
have tryed txp:article_custom in your iframe? and then insert the iframe code into txp page?
I dont understund why you use iframe it s not a valid W3C command!
Cheers
Offline
Re: linking to a section and category to show in an iframe
You can just create another new section and a new page and use article_custom in that page
and link to that new section
for example:
if you want to link to a section name “Music” with articles that are only in the category of “Trance”
so go create a new section name “music_trance” and a page with that name too or what you want
then in that page you use article_custom in this way:
<txp:article_custom section="music" category="trance" form="blablabla" pgonly="0" />
and this will be your link: <a href="/music_trance">Trance music</a>
Offline
#5 2009-01-28 17:33:10
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: linking to a section and category to show in an iframe
tye wrote:
link (…) to a txp section and display an article list from a specific category
Those links look like domain.com/section-name/?c=category-name
.
Offline
Re: linking to a section and category to show in an iframe
I tried all the mentioned and none worked I – I’ve resorted to using hidden sections – which works :)
I had to use an iframe as I am doing this job as a favor for a friend – he already got the design signed off before consulting me and the client isn’t interested in Search Engine traffic – its all offline marketing – soooo iframes it is
domain.com/section-name/?c=category-name
I tried those aswell – but it wouldn’t work – no idea why
Offline
Re: linking to a section and category to show in an iframe
I think for it to work you need to go to
> Admin
> Preferences
> Basic
and change “Permanent link mode” to “/section/title”
Offline