By frewfrux on
Is there any way (a module perhaps?) to sort the content of my site (all the pages/nodes) alphabeticly based on the title of the page/node? I have done a search in both the forum and the modules and have not found an answer.
Comments
I'm looking to sort the list
I'm looking to sort the list of pages/nodes that I see in the administration end of Drupal (forgot to mention that).
Even if someone could let me
Even if someone could let me know where the list of pages is generated (I couldn't find it in the System or Drupal modules) for the content screen then I would be able to go in and modify the code directly.
Is there no way to do this?
Is there no way to do this?
If there's no way to do
If there's no way to do this, I would really appretiate it if someone could confirm that for me. That's the rumour I heard, but I thought that it couldn't be the case which is why I searched the forums and then posted the question.
If what I'm asking doesn't make sense, let me know and I can clarify. If I'm posting in the wrong area, again, please let me know and I will re-post the question in the right area.
So, I just spent another day
So, I just spent another day trying to figure this out and here's what I've come up with. The "Views Alpha Pager" appears to mention something in its documentation that might help me out here. It says:
"Copy views_alpha_pager.module to your module directory and then enable on the admin modules page. Then, edit your view, and select the Pager option "Alpha". Add a view "Sort" that returns the sorted field in an alphabetic sort (i.e., don't sort by id or date, but rather by title or author)."
Now, what caught my eye was "Add a view "Sort" that returns the sorted field in an alphabetic sort (i.e., don't sort by id or date, but rather by title or author)."
How do I go about this?
I can not seem to find any way to edit anything called a view at all in the administration (nor do I really know what a view is). Can anyone help me?
views_alpha_pager is sort of
views_alpha_pager is sort of helpful, but may not be what you want.
It groups CONTENT. Content is individual node posts, not admin or utility pages. There is no automatic way to do that to admin pages. In fact there is no easy way to even enumerate admin pages.
views_alpha_pager uses views.module . If you tried to install it, it would have listed that as a dependancy. A view is a certain way of presenting collections of information. It's a complex and powerful module ... which you would have found lots of info about if you'd searched on drupal.org a little.
If, however you are meaning that you want to sort the content list currently already shown on the admin-content page /admin/content/node ... hm. That sounds like a useful idea. I've not seen that done.
It would probably take a bit of a hack to core node.module.
OTOH, a simple view "list all nodes, order by title" would help get you an audit sort of page, but not the checkbox actions.
.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Thank you so much for your
Thank you so much for your reply. I did come accross the View module in my initial search, but dismissed it as not meeting my needs fully. The views_alpha_pager would be a nice addition to what I want (if I didn't get the error:) but it isn't the functionality I'm looking for.
The second option you mentioned, sorting the admin-content alphabeticly is what I'm looking for. I have revisited the Views module and I think I might be able to get it to work the way I would like, I just need to read through the documentation on it. I've gotten as far as creating a view that displays kind of what I want, now the trick is to get that view to be displayed in place of the default at /admin/content/node.
After I get that to work, I will worry about getting the proper results from the view. (What I'm actually looking for is an alphabeticle sort of pages marked as recelty updated, and then the other non-marked pages sorted alphabeticly themselves.)
If anyone has ever done this before and con provide any insight, that would be greatly appretiated.
And thanks dman for you input. You have confirmed that I am indeed on the right track. :)
Well, at the moment I'm not
Well, at the moment I'm not sure if there is a cut-off possible for 'recently updated'. The ordering is simply by reverse date order. Which always trumps alphabetical.
I get what you are trying to describe ... but when sorting it usually goes by one major axis - date or title. Only if things were the same name or the same timestamp would a secondary sort make any difference at all.
I can see why the default admin-content table might not be suitable for what you want ... but reworking the display means taking charge of it altogether. Don't waste time trying to replace the current one, but you will be able to create a tuned view alongside it. But as I say, it may be hard to get all the same buttons there.
.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |
.dan. is the New Zealand Drupal Developer working on Government Web Standards
That's exactly what I'm
That's exactly what I'm going to do. Just include a link that takes you to the alphabeticle list in case the user is having a hard time finding a particular page. Once there the link will change to take you back to the most recently updated list. I may even make it a button which will effectivly "toggle" the screen. I'm a little surprised that this hasn't been done already, but at least it *is* doable.
Oooops, didn't paste in that
Oooops, didn't paste in that error:
Fatal error: Call to undefined function ctype_alpha() in .../modules/views_alpha_pager/views_alpha_pager.module on line 169