Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-02-20 19:14:14
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Split The Articles Tab
What I want to do is have 2 Artciles Tabs. Each Tab would contain different types of articles. I need this for a project that I am developing so that management of the information from the end users side will be easy.
I think this topic has been addressed before but I cannot locate it. I also know that this can and has been done by others.
Any guidance would be greatly appreciated.
Offline
Re: Split The Articles Tab
I recall this being a sorely needed function, particularly among txp power-users working on more complex sites, but don’t recall it ever having been realised. This was a declared aim of the Xpattern spin-off/fork but I don’t know what the current state is. The nearest I know to this is Christian Nowak’s experimental non-released plugin but I’ve only had limited success with it. Or maybe you’re thinking of zem_event which adds some more items to the article pane below the excerpt.
Otherwise, there’s glz_custom_fields for adding other kinds of custom fields and sed_section_fields for switching which custom fields show for which section. I think you know those too already. Another idea: maybe you were thinking of this hack to make a custom field a textarea?
Last edited by jakob (2009-02-20 19:54:45)
TXP Builders – finely-crafted code, design and txp
Offline
Re: Split The Articles Tab
This might be useful too: rah_write_each_section
Offline
Re: Split The Articles Tab
I find lam_browse_by pretty helpful for sorting articles quickly.
Txp admin themes | dropshado.ws – a blog for design noobs like me
Offline
#5 2009-02-20 21:55:58
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: Split The Articles Tab
Thanks for the responses so far. Unfortunately, I do not think that the options identified so far will work for this project.
jakob: I kind recall the same thing. I have emailed Christian to see if I can take a crack at his plug in. The other items you listed are ones that I am aware of, but not exactly what I am looking for since they add more areas to the write tab, but not a completely seperate tab for easy access to a group of articles.
maniqui: rah_write_each_section would work if it was not a pr-entry into the write tab, but a pre-entry into the articles tab. it is nice that it defaulst the correct section when one is writing an article, but for my purposes I need it more for end user organization and less for data entry.
nemoorange: This plug in is nice for sorting, but I want to make it somewhat idiot prrof.
For this project, I need to make it so they select Tab A and get these articles and they select Tab b and gets these articles.
Offline
Re: Split The Articles Tab
if you only need to enter an article just to edit it from a list by a specific section/category,
so create your own custom articles page:
create a page and not show it on the site
in that page do something like:
<html>
<head>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td>ID#</td>
<td>Posted Modified</td>
<td>Title</td>
<td>Section</td>
<td>Category 1</td>
<td>Category 2</td>
<td>Status</td>
<td>Author</td>
</tr>
<tr><td> </td>
</tr>
<txp:article_custom allowoverride="0" form="articles_tabs" limit="9999" pgonly="0" section="your_section" sort="Posted desc" status="4" />
</table>
</body>
</html>
change – form, section and status to what you want
and in the form:
<tr>
<td><txp:article_id /></td>
<td><txp:posted /></td>
<td><a href="http://www.domain.com/textpattern/index.php?event=article&step=edit&ID=<txp:article_id />"><txp:title /></a></td>
<td><txp:section /></td>
<td><txp:category1 /></td>
<td><txp:category2 /></td>
<td>a Status tag if there is any</td>
<td><txp:author /></td>
</tr>
you will not have the options of
tick the articles on the right side and use “With selected:” option
and delete, range, search
if you know PHP maybe you can add all those options
maybe there is a plugin for deleting the article from the edit page
after all this you can change the header (/textpattern/lib/txplib_head.php) and add links to those pages on top
or change the articles page and add those links to the top of the page
yes everyone who got the links will be able to enter those pages
but then if they click on the article-title to edit it, they will have to login
and you can use password protect plugin so they will can not enter those pages
Offline
Pages: 1