Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Read the book, few answers short
Hi,
I have read the book by Textpattern Book, well not from cover to cover but I got the 99.9% of it.
I need some answers and I guess you can help out a lot.
1. How in the world do I make a link to another page?
Ive got deafult (page) and that page is all done (its home page, right?), now I have created about page (from copying code from the first one), and when I want to make link to it, I dont know where to go.
List of links, thats not it.
Section links, not that either.
Link to home page, well, its only for home page.
Im realy getting frustrated by this since I have tried and tried and tried over and over to make it happen. :(
2. I need to put YouTube link for video as the main news. As I have read in the book, no further research done, textile cant parse youtube link as “video window” just as any other link.
So Im desperately in need of that. If it dose not exist, I am willing to pay for it to be made.
3. Is there some (web) gallery that works well with Textpattern. I need it for 20+ photos on the site, and I dont think it will ever be more than 100.
Since im in school right now, I will write about other “small bugs” that I have with TXP.
BTW
I have mastered the sections, forms and content, and everything else. Just this has went by me.
“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )
Offline
Re: Read the book, few answers short
- using plain HTML for a link works fine.
- there are a few youtube plugins
- even more plugins for galleries.
Offline
Re: Read the book, few answers short
<txp:link_to_home>go home</txp:link_to_home>
,<txp:section name="about">about</txp:section>
- You could post the video id as a custom field. In your article form, use if_custom_field and custom_field to display the required HTML.
- One solution: Post images as article images in a section called gallery. Use article on your page template with a form that displays a clickable thumbnail, and optionally article_custom to create a menu.
Last edited by jm (2008-03-06 16:23:57)
Offline
Re: Read the book, few answers short
Guys you have really got me out of the jam! Thanks a lot!
When Im done I will post the website in promotional section. Im betting you will like it. :)
“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )
Offline
Re: Read the book, few answers short
I cant get this straight.
I have installed “the_video” from “The Magnus” v0.8 called Easy video embeding.
And I think its easy for the Mnagus, for me, not so well. Here is the bug. I dont know how to use it.
This is what I need. I need YouTube video displayed in every article I make (main news), and thats it! :)
What I have done with The Mangus’s plugin. I have instaled it, enabled it, and went to my FORM and pasted it.
<txp:the_video from=“y” w=“404” h=“333” /> (since I need youtube video its marked with Y, and I need specific width and height )
Here is the full form:
[code] <h3><txp:title /></h3>
<txp:the_video from=“y” w=“404” h=“333” />
<div class=“c_l_n_sinops”>
<txp:body />
<div class=“c_l_n_s_comment”><txp:comments_invite class=“c_l_n_s_comment” showcount=“1” /></div>
</div>
[/code]
Here is the text from article:
Sinopsis:
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- Maecenas at leo eget nisl porta viverra.
- Ut laoreet, dui at tempus vestibulum, eros leo egestas neque, id adipiscing odio eros et lectus.
- Vivamus pretium lorem sit amet nulla.
- Praesent nec dolor at augue ultrices blandit.
- Quisque aliquet ultrices mi.[/code]
Also the plugin had some kind of ID, I dont know what it means so I have deleted that.
I know this is trivial question on how to use this plugin, but simply I dont get it. Help appreciated.
Last edited by sirNemanjapro (2008-03-06 22:49:45)
“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )
Offline
Re: Read the book, few answers short
Ive got it. :(
You need to put the code inside of the post. But the movie is not loaded, why?
“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )
Offline
Re: Read the book, few answers short
Also the plugin had some kind of ID, I dont know what it means so I have deleted that.
you can’t just delete an attribute just because you have no idea what it means. you need the id to actually specify the video or else how are you going to tell it which video to even play??? its not going to magically know.
Last edited by iblastoff (2008-03-07 00:57:02)
Offline
Re: Read the book, few answers short
I know. :D
Im experimenting as I go. Since my last post I have figured out how txp:the_video works.
This is how I am pasteing code inside of it <txp:the_video from=“y” id=“http://youtube.com/watch?v=kzPaVdHlmK0” w=“404” h=“333” />
But there is no video displaying. It just shows ( when right mouse click on the field the youtube video should be ) Movie not loaded.
“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )
Offline
Re: Read the book, few answers short
thats not the id of the video. thats the entire url. you want just the “kzPaVdHlmK0” part.
Offline
Re: Read the book, few answers short
Douh!
Thanks…
“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )
Offline
Pages: 1