XF 1.0 Pages

Pages allow you to manage simple content in the node tree. Find out more here:

http://xenforo.com/community/pages/example-page/

The node list display could do with some improvements. We have some ideas about that.

The exact look of the auto-generated navigation is a work-in-progress as well. :)
 
I keep seeing pages and wanting to edit in-line, so I keep adding [edit] button with a template mod for admins linking to the {$page.node_id} .. Could a future version perhaps have an edit link? Saves going to admin > nodes > filter to find right one > edit .. A save&reload button would be very handy, pages are used to write a lot of content, it needs a lot of fixing, marking up with html, etc. I tend to end up with 15+ tabs and frustration, a reload button would fix that.
 
I keep seeing pages and wanting to edit in-line, so I keep adding [edit] button with a template mod for admins linking to the {$page.node_id} .. Could a future version perhaps have an edit link? Saves going to admin > nodes > filter to find right one > edit .. A save&reload button would be very handy, pages are used to write a lot of content, it needs a lot of fixing, marking up with html, etc. I tend to end up with 15+ tabs and frustration, a reload button would fix that.
+1

Editing from outside the AdminCP is very important.
 
You can use php callback.

I thought Pages can't include php?

What I mean is can the Pages include an xf conditional like this:

<xen:if is="{xen:helper ismemberof, $visitor, x} OR {xen:helper ismemberof, $visitor, y}">
This content will show to members of user groups x or y
</xen:if>
 
I thought Pages can't include php?

What I mean is can the Pages include an xf conditional like this:

<xen:if is="{xen:helper ismemberof, $visitor, x} OR {xen:helper ismemberof, $visitor, y}">
This content will show to members of user groups x or y
</xen:if>

A php callback is used to call a php class (am I saying this right?) with a callback method because you can not include php inside of the templates...they won't parse as php there as I understand it. You can create some php inside of a separate file in your library and use it via the callback.

And yes I believe you can use that in a page node with no problem
 
A php callback is used to call a php class (am I saying this right?) with a callback method because you can not include php inside of the templates...they won't parse as php there as I understand it. You can create some php inside of a separate file in your library and use it via the callback.

And yes I believe you can use that in a page node with no problem

you can use php with iframes in your templates, but more times than not, you achieve undesirable results
 
you can use php with iframes in your templates, but more time than not, you achieve undesirable results

mostly because, if I am not mistaken with this as well, the php in the iframe isn't exposed to xenforo so everything you need your iframe to do must be done within the iframe if I recall correctly.

I was doing this myself before but I am moving on to doing it a better way which would be to create some classes in the library and do a callback to them.

(please excuse if I am using any wrong terminology)
 
Agreed with DigDoc - need education about "callaback"

DigDoc also asked somewhere why it's important to edit outside admincp

My reasons are ... I want my mods to be able to edit Pages for themselves.
They don't dop html - this isn't a requirement to be a good mod.
Nor do I want most of them to access admincp.

Secondly I want to do small and frequent updates on some key Pages. Having to login the admincp just to change one crucial word or a single date is a big pain. This kind of frequent editing needs to be frontend.

But not to worry. Logician says he's not doing it. I have another coder interested in doing it. Also in pagination.
 
I wouldn't call it an oversight myself. I know it sounds very useful but...pages accept raw html. Having them editable by members by default is something I don't want. As an addon...lovely but to include the ability for a regular member to edit html as a stock feature is not smart imho. If I didn't know how it worked or slipped and gave permissions to the wrong person, they could do some ugliness. It's just my opinion though. As an full out addon that allowed specific users the ability to edit pages however I would support the idea completely.

By the way welcome to the community.
 
I agree with the need for restricted editing - but this permission base is in xenforo. Create a user group called "page editors" and give them edit rights by page - just like you can to a forum. Or assign an existing group - moderators for example if you want it broader.

Perhaps oversight is a bit harsh - but the mechanism in place now is NOT noob friendly at all. My main forum moderator is not at all familiar with HTML and I frankly don't want her farting around in the admincp much at all.
 
I had a look at ragtek's mod but
- you have to install another specialised mod to use THIS mod - sounds too specialised to me. Just my opinion.
- it does have an editor button but it is a link to the admin html edit, not a frontend edit.

Also the thread Brogan gave has been running since XF started and hasn't got us anywhere. Pages are still Pages, limited to html and not developed.

So I gave up and got it arranged myself. Our forum/ category Watch mod is just about done, ditto social groups. A few more days.
So next on the list is Articles with bbcode edit. Plus a whole lot more!
 
Hm, that's not true:P

The link opens an frontend editor;)
 

Attachments

  • front.webp
    front.webp
    28.9 KB · Views: 71
Top Bottom