Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-03-04 10:20:48
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
[request] Filter and exclude some sections and categories - articles and images
Hello,
I’m in the process to move my school site to TXP.
Like in this post I want to be allowed to filter articles and images.
I want to be allowed to check some sections or categories to be able to exclude them from the article or image list.
If I set up an event calendar, I don’t want to list all the events with the teachers or students articles.
The filter must be a persistent filter. Retrive the checked sections/categories when I log in the site again.
TXP is awsome but it’s difficult to play with it when you have thousand of articles or images …
Offline
Re: [request] Filter and exclude some sections and categories - articles and images
Have you thought about creating that browsing experience for the front end? You could tailor your menus, sorting, and display how you like and ad edit link by each result or output.
smd_var could help make it persistent by storing the users last choices as variables… Could be a nightmare but is totally possible and would be more manageable/flexible in terms of usability as time went on.
Last edited by whaleen (2010-03-16 07:28:44)
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#3 2010-03-16 08:18:01
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: [request] Filter and exclude some sections and categories - articles and images
Josh,
I want to filter in the back end.
No problem to sort or filter in the front end.
Offline
Re: [request] Filter and exclude some sections and categories - articles and images
I understand. It’s just that in my expirimenting I’ve been able to provide users ways to find stuff in the front end as means to let them then click edit. This way I can present content any way I wish and don’t have to fiddle with plugins and mods. If you can’t think of a reason why not to then why not consider having admin content navigation in the front?
Just ideas. :)
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#5 2010-03-16 22:34:51
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: [request] Filter and exclude some sections and categories - articles and images
Thanks,
How do you :
- protect this page from unauthorized users ?
- put an edit link ?
Have you some tips, tutorials ?
Offline
Re: [request] Filter and exclude some sections and categories - articles and images
- protect this page from unauthorized users ?
JP, you can use ign_password_protect to restrict access to those pages only to people who can log in. As far as I can tell, if you opt to use the txp_users table, everyone who already has access to the backend will have access to your special pages without you having to change any passwords etc. You might need to test this bit out first.
– put an edit link ?
You can use a normal txp:article_custom to list the (subset of) articles how you want them. You can style and paginate as you like. Instead of using permlink, make your links look something like this:
<txp:site_url />textpattern/index.php?event=article&step=edit&ID=<txp:article_id />
If the user is already logged in to the back-end, it should take you straight to the write pane for that article.
TXP Builders – finely-crafted code, design and txp
Offline
Re: [request] Filter and exclude some sections and categories - articles and images
on another tack: not sure if tjh_listfilter still works with newer version but maybe that’s simpler. According to Joe’s comment it remembers your previous setting (I guess via a coookie).
TXP Builders – finely-crafted code, design and txp
Offline
Re: [request] Filter and exclude some sections and categories - articles and images
If the user is already logged in to the back-end, it should take you straight to the write pane for that article.
That’s the key. When they are logged into the back end already you can provide them links directly to the edit any content which can only be edited in the back end. Building then links in the way Jakob did in hie example is the way I do. You’ll notice when you are logged into the back end and you roll over an article, image, file, etc…, you can see the url contains a numeric ID. TXP tags are available to build an edit link into most types of content by providing that ID.
Experience-wise: People will be in effect jumping back and forth between the live site and the back-end as they see something to edit or are prompted to create new stuff.
I’ve found it to be easier for clients as I can create custom pages that outline tasks rather than sending them in the TXP admin where customization is still needed to help guide them and not distract them from their tasks.
You might install rvm_privileged as an alternative or companion to ign_password_protect. If you don’t need any more control of permissions for groups than the default TXP privilege levels provide (Publisher, Managing Editor, etc…) then rvm_privileged might be enough.
on another tack: not sure if tjh_listfilter still works with newer version but maybe that’s simpler.
Simple is good, maybe try that plugin first to see if it’s appropriate for your users. There is another one like it I can’t remember where though. Will post if I remember.
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
Re: [request] Filter and exclude some sections and categories - articles and images
jakob wrote:
on another tack: not sure if tjh_listfilter still works with newer version but maybe that’s simpler. According to Joe’s comment it remembers your previous setting (I guess via a coookie).
Sadly, tjh_listfilter isn’t compatible with with 4.20. I miss it :-(.
Offline
Re: [request] Filter and exclude some sections and categories - articles and images
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
Re: [request] Filter and exclude some sections and categories - articles and images
lam_browse_by does a great job but it’s output isn’t persistent whereas that from tjh_listfilter was. If you set it to list a particular category, section or whatever the output listing would remain through page refreshes, going off to another part of the admin interface, logging out and logging back in etc.
Offline
#12 2010-03-17 20:59:16
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: [request] Filter and exclude some sections and categories - articles and images
I try tjh_listfilter and it’s exactly what I need … when it work !
I try on a 4.0.8 txp and only category filter work.
Offline