Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-28 03:03:58

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

#2 2009-01-28 03:25:46

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

#3 2009-01-28 13:39:38

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

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

#4 2009-01-28 16:03:30

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

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

#6 2009-01-28 23:06:57

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

#7 2009-01-29 08:08:35

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

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

Board footer

Powered by FluxBB