Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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,287
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,287
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

#25 2009-06-29 16:04:20

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

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

Obviously i had mis-understood your point. I can appreciate that we can edit the “file” in the DB… but that is not the same as editing a FILE outside of the db, directly in say a CODA or BBedit or Textmate file editor. Now having this ability would be powerful.

PS mrdale .. can you shed any more light on your workflow on how you use txp as mentioned early in this thread? Cheers…


…. texted postive

Offline

#26 2009-06-29 16:11:14

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

I think there’s a textpattern bundle for Textmate – I’ve never followed through on getting it working.
Personally I still do a lot of copy/paste between Textmate and TXP.

Efficient? Nope.
Works fine for me though

Last edited by renobird (2009-06-29 16:12:25)

Offline

#27 2009-06-29 16:12:54

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

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

bici wrote:

editing a FILE outside of the db, directly in say a CODA or BBedit or Textmate file editor.

If you don’t want to edit pages, css etcetera directly in the Txp back-end (of course you don’t have to edit them in the db), there are a couple of possibilities. I’m using the It’s All Text! extension for Firefox, you can use it with an editor of your own choice. Or there is hak_editarea, also check that entire thread because it mentions more alternatives.

Offline

#28 2009-06-29 16:54:06

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

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

Els wrote:

I’m using the It’s All Text! extension for Firefox, y

Can you get this to work with a mac? No luck for me.

Offline

#29 2009-06-29 17:01:08

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#30 2009-06-29 17:04:59

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

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

Edit: Oops, I didn’t see the tail of the thread. I am commenting on #19

bici The Textpattern logic is very similar to EE (what I know so far). The template tags follow the same abstraction logic. You just have to ‘translate’ some usages 1:1. eg {embed} is <txp:output_form form="EE_Template" />. In many cases you could use a search & replace script to adopt a high percentage of EE tags to become TXP tags.

And yes, of course you can edit every page, form, CSS outside of Textpattern and outside of the DB.

You can also take a naked HTML page, aka the design markup, and add (inject/replace) dynamic template tags. It’s the same procedure as in ExpressionEngine.

Last edited by merz1 (2009-06-29 17:08:41)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB