Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-06 15:52:26

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

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

#2 2008-03-06 16:09:47

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Read the book, few answers short

  1. using plain HTML for a link works fine.
  2. there are a few youtube plugins
  3. even more plugins for galleries.

Offline

#3 2008-03-06 16:22:07

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Read the book, few answers short

  1. <txp:link_to_home>go home</txp:link_to_home>, <txp:section name="about">about</txp:section>
  2. 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.
  3. 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

#4 2008-03-06 18:54:22

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

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

#5 2008-03-06 22:49:20

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

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

#6 2008-03-07 00:15:03

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

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

#7 2008-03-07 00:56:09

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

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

#8 2008-03-07 01:00:28

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

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

#9 2008-03-07 01:08:40

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

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

#10 2008-03-07 01:12:12

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

Re: Read the book, few answers short

Douh!

Thanks…


“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )

Offline

Board footer

Powered by FluxBB