Textpattern Forum

You are not logged in. Register | Login | Help

#21 2006-02-25 10:58:13

p_see
Member
Registered: 2006-02-24
Posts: 17

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Well, I’m a newbie in TextPattern and I have just understood certainly one of the basic elements: the Id is an “article” attribute and it must be called from a “form” not from a “page”. Hope this can help another new comer.

Last edited by p_see (2006-02-28 23:02:42)

Offline

#22 2006-03-11 10:23:46

p_see
Member
Registered: 2006-02-24
Posts: 17

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

I think of a way to delete an article from the write/edit page of each article.
A button after “Reset time to now”

—> “DELETE
(I’ve post a request in the features request forum).
I don’t have any idea of the difficulty to do this, it is just a suggestion (honestly I am sure that others already thought of it. Thus that should not be so easy to make…).
It would have sense with the front-editing concept.

Offline

#23 2006-06-07 04:14:37

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Rob,
Any chance its not difficult to add a wraptag and wrap class to this?
It would allow me to style it.

Thanks man,

Matthew


Offline

#24 2006-07-12 20:49:32

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 1,891
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

wouldn’t it be just as useful and much simpler for a plugin to use textpattern’s own cookie?

I was asked today why one needs to set an extra cookie for this and was stumped for an answer, particularly as the “edit” link depends upon you being logged in.

Would it be possible to make it use the ‘remember me on this machine’ cookie txp sets when you’re logged in or not?

BTW: as “The Exit” said, you need to give rights to lower user-levels to show the extension tab. This is no problem, unless you have other extension tab plug-ins which should not be available to all.


TXP Builders – finely-crafted code, design and txp

Offline

#25 2006-07-30 15:34:07

wordgasm
Member
Registered: 2006-05-17
Posts: 64

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

how come it wouldn’t work on my site? I’ve set the cookie and followed the instructions, even checked and rechecked the template and the article form, but it wouldn’t work? =/


It takes a heap of sense to write good nonsense. – Mark Twain

Offline

#26 2006-07-30 16:20:32

Destry
Moderator
From: Strasbourg, France
Registered: 2004-08-04
Posts: 2,336
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

wordgasm wrote:

how come it wouldn’t work on my site? I’ve set the cookie and followed the instructions, even checked and rechecked the template and the article form, but it wouldn’t work? =/

It would help if you showed us what your relevant template and form code is.

By the way, you did turn the plugin on, right?

Last edited by Destry (2006-07-30 16:21:20)

Offline

#27 2006-07-31 15:38:25

wordgasm
Member
Registered: 2006-05-17
Posts: 64

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

the plugin was and is still turned on, the cookie was set, etc. this is my article form:
<code>
<a href=”<txp:permlink />” title=”<txp:title />”><div id=title><txp:title /></div></a>
<div id=entry><txp:ied_replacer what=“body” /></div>
<div id=comment><txp:rss_article_edit>edit</txp:rss_article_edit> <txp:posted format=”%d.%m.%y | %R” /> | <img src=”/blue/comment.gif”> <txp:comments_invite /></div>
</code>

is there something wrong with it that I don’t know of?? I’m sure I know what I’m doing with my layout, putting the right forms in the right place and such… I’m using txp 4.03 by the way. thanks for helping out :D


It takes a heap of sense to write good nonsense. – Mark Twain

Offline

#28 2006-07-31 18:36:04

Destry
Moderator
From: Strasbourg, France
Registered: 2004-08-04
Posts: 2,336
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

I see two things worth considering:

  1. Divitis in affect (use of more divs than necessary). Maybe start by simplifying your code, dropping unneeded divs and using other selectors where appropriate (e.g <code><h1></code>, <code><h2></code>, <code><h3></code>, whatever).
  2. I think the plugin tag, <code><txp:rss_article_edit> … </txp:rss_article_edit></code> is supposed to be tied to an actual article body that is under Textpattern’s control. I don’t see an actual <code><txp:body /></code> in your code. You’re using another plugin tag for the body and that’s not how the “edit” plugin was designed.

Here’s one idea about redoing that form (CSS not included):

<code><a href=”<txp:permlink />” title=”<txp:title />”><h1><txp:title /></h1></a></code>
<code><txp:body /></code>
<code><div id=“comment”><p><txp:rss_article_edit>edit</txp:rss_article_edit> <txp:posted format=”%d.%m.%y | %R” /> | <img src=”/blue/comment.gif”></code> <code><txp:comments_invite /></p></div></code>

Ultimately you can do what you like with the divs, but I think the <code><txp:body /></code> tag is the root of the real problem here. Just a guess.

Last edited by Destry (2006-07-31 18:38:48)

Offline

#29 2006-08-01 12:49:18

wordgasm
Member
Registered: 2006-05-17
Posts: 64

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

okay thank you very much! can’t believe I overlooked that one.:p


It takes a heap of sense to write good nonsense. – Mark Twain

Offline

#30 2006-08-01 14:39:19

Destry
Moderator
From: Strasbourg, France
Registered: 2004-08-04
Posts: 2,336
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Sorry, this line should have been written like this…

<code><h1><a href=”<txp:permlink />” title=”<txp:title />”><txp:title /></a></h1></code>

(header tags on the outside of the anchor)

Offline

Board footer

Powered by FluxBB