Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-06-17 22:28:07

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Help me with the 'election'. Wordpress or TextPattern?

janvi wrote:

Need to study a little bit more theese forms, seems so complicated.

Forms (asidde from the article type) are really just general purpose storage areas that you can call in a modular manner.

An article form is just a display mechanism for how you want your articles presented, so you could do something simple like this…

<div class="story">
<h1><txp:title /></h1>
<txp:body/> 
< /div>

or complicated like this…

<txp:if_individual_article>
<div class="<txp:wet_if_sticky>sticky </txp:wet_if_sticky>individual story">
   <txp:zem_ir group="headline"><txp:title /></txp:zem_ir>
     <div class="storyImage"><txp:output_form form="details-availability"/><txp:output_form form="details-general"/><txp:article_image /></div>
   <div class="blurb"><txp:excerpt /></div>
   <txp:body/>
<txp:else/>
<div class="<txp:wet_if_sticky>sticky </txp:wet_if_sticky>list <txp:if_first_article>first <txp:else/>following</txp:if_first_article> story">
      <txp:zem_ir group="subhead"><txp:title /></txp:zem_ir><span class="posted"><txp:zem_ir group="sidehead"> <txp:posted /></txp:zem_ir></span>    
      <txp:permlink class="imageLink">
      <div class="storyThumb"><txp:output_form form="details-availability"/><txp:hak_article_thumb /></div>
      </txp:permlink>
      <txp:excerpt/>
</txp:if_individual_article>
<txp:output_form form="page-button-list" />
</div>

Notice this one uses a lot of conditionals to handle different circumstances

Last edited by mrdale (2009-06-17 22:28:58)

Offline

#14 2009-06-18 08:00:31

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Help me with the 'election'. Wordpress or TextPattern?

mrdale wrote:

<txp:wet_if_sticky>

What’s not to love about Textpattern tags ;)

Offline

#15 2009-06-18 12:53:00

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Help me with the 'election'. Wordpress or TextPattern?

hcgtv wrote:

What’s not to love about Textpattern tags ;)

Love the forbidden plugin lust ;)

Offline

#16 2009-06-19 08:50:16

janvi
Member
From: Norway
Registered: 2009-05-28
Posts: 41

Re: Help me with the 'election'. Wordpress or TextPattern?

Hmm ..

So the implementation of the forms in my source is simply excerpts of the layout as I have today? or ..? (Given that I based the layout of an html version of my theme.)
In this case, do I have to delete the part I add to my forms from my ‘page_default’?

Can it be compared with the wordpress themes? In these, you can cut sections and move to eg. sidebar.php, header.php, comments.php… just wondering, as my field is php not ‘‘sneeze creepy tags’ :)

regards
<txp:noob /> open for learnin’


Imagine a world in which every single person on the planet is given free access to the sum of all human knowledge.

The Future is Open – GNU/Linux

Offline

#17 2009-06-19 11:28:07

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help me with the 'election'. Wordpress or TextPattern?

This article by Destry will help. Don’t forget part 2.

Offline

#18 2009-06-19 13:56:18

janvi
Member
From: Norway
Registered: 2009-05-28
Posts: 41

Re: Help me with the 'election'. Wordpress or TextPattern?

Nice, I’ll try this tonight.
And another thing, can I use xhtml, java inside the forms?

As I understand pr now it’s like this most of..

I have to use:
<t xp:output_form form=“form_name” />

Insetead of.. (like I’m used to do..)
incude(‘folder/file.php’);

True?


Imagine a world in which every single person on the planet is given free access to the sum of all human knowledge.

The Future is Open – GNU/Linux

Offline

#19 2009-06-29 14:41:51

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,092
Website Mastodon

Re: Help me with the 'election'. Wordpress or TextPattern?

mrdale wrote:

Here’s a good reason. Textpattern is inside out.

Stop thinking about a website font-end as a theme that you bend to your will, and start thinking about turbocharging your site with textpattern. Don’t build a site in TXP, build your site and put TXP inside. That way the world’s your oyster.

Just use TXP as a delivery mechanism for the content you want to be dynamic. Like here, here or here

some very nice sites! well done.

I am very intrigued by your description of “Textpattern is inside out” and “turbocharg textpattern”… With one of the CMS that i use now, EE, this is exactly how I use that tool. I was looking over the weekend on how i could apply my EE workflow to TxP. EG. Can i edit the various pieces; Pages, Forms directly outside of TxP… or are they hardwired into the DB. Form what you describe it sounds like you create flat files and then inset TxP code into them. Please elaborate on your workflow.


…. texted postive

Offline

#20 2009-06-29 15:06:39

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Help me with the 'election'. Wordpress or TextPattern?

bici wrote:

Form what you describe it sounds like you create flat files and then inset TxP code into them.

There really isn’t any big difference in database nor a flat file. You can edit both directly, DB just can hold thousands of “files”.

Offline

#21 2009-06-29 15:12:28

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,092
Website Mastodon

Re: Help me with the 'election'. Wordpress or TextPattern?

Gocom wrote:

There really isn’t any big difference in database nor a flat file. You can edit both directly, DB just can hold thousands of “files”.

Cool. Where in the directory structure are the flat files stored? Can I specify a location? ( i am unable to find the Page for the Default site that gets loaded upon the installation)


…. texted postive

Offline

#22 2009-06-29 15:19:29

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Help me with the 'election'. Wordpress or TextPattern?

bici wrote:

Cool. Where in the directory structure are the flat files stored? Can I specify a location? ( i am unable to find the Page for the Default site that gets loaded upon the installation)

Directory? Flat files? As I said, in the DB.

Last edited by Gocom (2009-06-29 15:20:42)

Offline

#23 2009-06-29 15:20:37

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Help me with the 'election'. Wordpress or TextPattern?

Gocom wrote:

There really isn’t any big difference in database nor a flat file. You can edit both directly, DB just can hold thousands of “files”.

Wow that’s new to me. On a stock install there’s no way I know of to edit “pages” or “css” files from a directory. do tell!

Offline

#24 2009-06-29 15:22:45

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Help me with the 'election'. Wordpress or TextPattern?

mrdale wrote:

Wow that’s new to me. On a stock install there’s no way I know of to edit “pages” or “css” files from a directory. do tell!

Who said about anything about directory. I just said you can directly edit db if you want. There really isn’t a difference in flat file nor in DB.

As your file system, so does DB take commands.

Last edited by Gocom (2009-06-29 15:25:43)

Offline

Board footer

Powered by FluxBB