Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
calling articles in a featured widget
i’m building a widget for a page that calls articles to show you what’s featured.
first i placed an article_custom on the page, and then it calls a form which has all the elements(title, image, text). Inside that form is another article_custom calling a form which handles a navigation row. that is set to skip=“1’ cause you dont want the main one to show up in there.
the intention is i will use javascript to call the articles in the navigation and make them the main article if the user wants to see that item. once you call something in the navigation, that has to update as well.
my problem isn’t with the javascript, it’s more trying to figure out how to implement this with textpattern.
does this make any sense?
Offline
Re: calling articles in a featured widget
sorry i’m sure this post confused a lot of people!
something dawned on me though on how this can be accomplished.
i got pretty far on my first attempt by making a custom field that would become the id of the divs. everything was going well until i did the script in the head with the getelementbyID thing, and i’m like how is that going to change? well it dawned on my today that you can use article_custom to change the divs in a script in your <head> too.
i scrapped my first attempt though. if i ever get it working i will post it in case anyone is interested in this.Offline
Pages: 1