You are not logged in.
No idea if this is possible, but is there any way of linking a form to an article, much the same way as you’d link an image to an article?
Basically, I have a sidebar on my site, and I want the content to be different depending on the article. I know that I can do this with lots of if statements, but there must be an easier way?
Any help or ideas would be greatly appreciated.
wich kind of content on sidebar?
you can put content on a custom_field in article or in excerpt (if not used) on show that content on the sidebar. another solution should be putting sidebar content into articles and link to it by putting his id in a custom_field.
The content in the sidebar could be an image, or it could be contact info, or any other bit of code..
A specific example; On my site I will have various articles about a particular location. When any of these articles are viewed, I’d like to show a sidebar with contact info etc for that location, and other specific information relating to the location. More than 1 article will relate to this sidebar, so I dont want to have to type it out every time etc…On other articles, I’d like to show a different sidebar etc.
I will look into the custom_field area though as this may be able to get me some of the way..
I think custom_field could do the trick, you can store on in text or html code or an id that link to another article wich contain the sidebar code, there is a lot of solutions just pick one that you are confortable with.
I just tried using custom_field and it’s perfect for the job.. I’m quite new to Textpattern so it’s difficult at first to see all of its potential; thanks for pointing out the perfect solution to my problem :)