Jump to content

Recent posts on top in pages tree, and another filter problems


OLSA
 Share

Recommended Posts

Hello for all,

I am registered here more than 2 years, but because I was deep in Joomla (for every project write custom components, modules and plugins) I was in doubt to leave or not Joomla and start to work with ProcessWire. After all, last month finished 2 small websites in PW and it was like a game - wonderful experience.

After that decided to move all my sites to PW, and there are problems with first bigger website.

I start to move website with about 2000 pages (documents, news, events, gallery...) from Joomla to PW. Create content structure on PW side, write scripts to copy content and files, and everything finished without any problem.

1.
Problem is that "news" category has about 700 pages (last 10 years content) and in admin pages tree, after submit new post, need to press page "14" and there find that new post. I read this, and found that there is no simple option to filter list - view - by "created" - or there is option inside template options - but in that case we lose "move" option. Also I know for top-menu option and "Pages/Recent/Created" but because of my clients, want to get that part similar like they get in Joomla backend (recent pages are on the first page in list, but also there is option to change order).

post-1376-0-95578700-1433975332_thumb.jp

2.
Another part is when need to link to some page from CK editor (link option) is any chance to get some filter or search for pages in pop-up window.

EDIT: I was looking for answer in different direction, but input search field in pop-up window is completely ok for this problem (thanks @tpr)

3.
Third question is to get option for truncate titles in pages tree with the addition date created?

Please note, that I don't ask code solution for my problems, great help would be - idea - or what will be a PW "way to go" to solve all this tasks?

Thanks,
Sasa

Link to comment
Share on other sites

1: Edit the parent page and under the "Children" tab, there is a "Sort settings..." setting at the bottom. Select "created" from the dropdown and check "Reverse sort direction?" afterwards.

2: There's an autocomplete input field in the popup window at the top saying "Enter a URL, email address, anchor, or enter word(s) to find a page.". Start typing and pages will appear.

(you need to enable "pwlink" plugin in your CKEditor field's settings ("Input" tab) to be able to add links)

3. In your actual template, see the "List of fields to display in the admin Page List" setting under the "Advanced" tab. I don't know how to truncate titles though.

Using PW 2.6.0 here.

  • Like 1
Link to comment
Share on other sites

1: Edit the parent page and under the "Children" tab, there is a "Sort settings..." setting at the bottom. Select "created" from the dropdown and check "Reverse sort direction?" afterwards.

2: There's an autocomplete input field in the popup window at the top saying "Enter a URL, email address, anchor, or enter word(s) to find a page.". Start typing and pages will appear.

(you need to enable "pwlink" plugin in your CKEditor field's settings ("Input" tab) to be able to add links)

3. In your actual template, see the "List of fields to display in the admin Page List" setting under the "Advanced" tab. I don't know how to truncate titles though.

Using PW 2.6.0 here.

Thanks @tpr

1. yes I know for that and problem is, after that setup, to change order in some cases - drag and drop ("Your sort was not saved because these pages are automatically sorted by -created."). And that is clear to me, but want to get default sort option by last added page on top of the first page, but with option to change order. 

2. yes that is solution, and thanks for that (it is completely ok)

3. I was not paying attention in that setup - but also will try to find solution to change date format, and like to add some different CSS style

Link to comment
Share on other sites

Thanks @Sérgio for link, and great thanks to Horst and his job, but right now as I understand it's late for me to use it (I have finished all structure, imported all content in few steps...).

Probably I will stay with parent page setup (sort child by "created") and add "featured" field to child pages.

I like this behaviour only in the beginning of pages tree creation (for parent pages only) - but later in next step - for child pages - I like to get pages tree in "reverse" order.

I was confused in all this because I was thinking - it's only view - and probably we can do something to "reverse" JSON response, but that's it and need to finish this project because my deadline is so close.

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...