Page 1 of 1
Listcontent in Admin-Mode
Posted: Sat Jun 04, 2005 4:05 pm
by nils73
I am becoming more and more familiar with CMSMS and have just discovered that you can set a value for how many pages should be shown in listcontent.php in admin-mode. That is great. However, if you do not want to set it by yourself (default is 20 entries) you can leave it unedited. I prefer setting it by using a parameter in the URL:
listcontent.php?limit=40 which is by far easier if you maintain large websites than paging through the content (I have admin-bookmarks disabled cause they have scared me off).
Here is what you should modify in
listcontent.php from line 116ff:
Code: Select all
$page = 1;
$limit = 20;
if (isset($_GET['page']))$page = $_GET['page'];
if (isset($_GET['limit']))$limit = $_GET['limit'];
Yet another thing I have modified is the display of MenuText instead of the Title for the current page. As far as I am concerned I can identify content much easier by knowing the menu-items (as they also appear in my sitemap).
Must be around
line 184 in listcontent.php where you should replace
echo "Id()."\">".$one->Name()."\n";
with
echo "Id()."\">".$one->MenuText()."\n";
Maybe an admin should be able to set all or some of these in the admin panel.
Regards,
Nils
Re: Listcontent in Admin-Mode
Posted: Sun Jun 05, 2005 8:07 pm
by Alex_Leipzig
Thanks for the tipp! Do you happen to know how to filter the listed content according to the logged-in user?
Re: Listcontent in Admin-Mode
Posted: Mon Jun 06, 2005 1:14 pm
by nils73
Since this is the international forum, I answer your request in English (sorry in advance, but it would be better to post the respective question in the German section of the forum to keep the structure):
I don't think that this is possible with a simple mod. If I am not mistaken it needs a modification of user roles or at least the possibility to allow / disallow certain users for certain contents. At least it would be a more complex SQL statement but not a simple hack as this one. Sorry.
Regards,
Nils
Re: Listcontent in Admin-Mode
Posted: Mon Jun 06, 2005 11:00 pm
by Greg
Thanks Nils for the tip about listing the content by Menu text, I have been looking for that change for some time. My users don't know what a title is and always look for the Menu item.
Re: Listcontent in Admin-Mode
Posted: Tue Jun 07, 2005 5:49 am
by Ted
Would it make more sense to always show the menu text instead of the title? I can see it both ways (either making total sense, or none at all).
Re: Listcontent in Admin-Mode
Posted: Tue Jun 07, 2005 7:59 am
by nils73
wishy,
as far as I'm concerned I would prefer the menu-text. I got used to a lot of CMS in the past 5 years and there have been a lot of ways to deal with this issue. I have always liked the ones where I could walk through the menu-items to edit the content I want to edit. But if you are not quite sure, here's what I would really like to see: a search feature on the backend. Sometimes I am not sure where I have put my content and it would be great to just type and find. This would also include the title so that would be it. Search ... hmm ... that reminds me of something!
Regards
Nils
Re: Listcontent in Admin-Mode
Posted: Tue Jun 07, 2005 8:24 am
by Alex_Leipzig
wishy wrote:Would it make more sense to always show the menu text instead of the title? I can see it both ways (either making total sense, or none at all).
Here's another problem: since the last two or three versions, one can no longer edit the page alias. The thing is, when I now edit older pages, the initial alias is changed to the (different!) menu title. Is there a way to deal with that?
Re: Listcontent in Admin-Mode
Posted: Wed Jun 08, 2005 5:50 am
by Ted
I just put it on my TODO to look into.