Build customized page list widgets
Kort |
|
||
---|---|---|---|
[Plugin] PagelistПлагин вывода страниц через функцию по условиям (аргументам):
Примеры использования
SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
|||
Dieser Beitrag wurde von Kort (am 8. September 2023, 13:23, vor 1 Jahr) bearbeitet |
Trustmaster |
|
---|---|
1) already implemented, download the latest version. 2) I doubt it's worth the effort. It is heavy on SQL and rarely really needed. 3) this is a good idea, you can add it to plugin issues directly on Github. Thanks for feedback! May the Source be with you!
|
Uch |
|
---|---|
Do you plan to make something like PageList for Forums posts? May be PostsList? |
Trustmaster |
|
---|---|
Currently not. May the Source be with you!
|
Uch |
|
---|---|
Приделал кэш. Скорость загрузки индекса выросла почти в три раза! |
Macik |
|
---|---|
Can you share this version with others? https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
Uch |
|
---|---|
It does not make sense, because i just want to see how it speeds up index page loading. And i have made a little improvement to use Cotonti chache system excluding possible pagination and cache cleaning (for page add and page edit events). So this is just an experiment. I pass a unique name of the variable containing the cache to the function, along with other parameters from TPL file. Now i have to make it sensitive to the pagination system. And i have to think how to clean the cache when new page is added or some page is deleted, given that cache variable has a unique name. And i have a main reason not to do it. I'm waiting for the official version of the plugin, knowing that the developers will make it better than me.
|
Wadik |
|
---|---|
А кеширование к этому чудному плагину так и не приделали? |
foxhound |
|
---|---|
I think this is great and i am using it on some parts of my new website already. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
Kort |
|
---|---|
1. You can use UNIX_TIMESTAMP() as current time value and play with it (i.e. compare to a page extrafield and check the difference). 2. You can use RAND() as sorting parameter to get randomly selected pages SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
foxhound |
|
||
---|---|---|---|
Thanks Kort, with that I can make some tries :) Added 2 months later: Anyone here knows how I could list only pages from the same page_owner as the ones whos page you are viewing? I tried to add a condition like:
but that gives 0 output. I added numerous variations of that and none work (so the list stays empty) or it gives me an sql error. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
|||
Dieser Beitrag wurde von foxhound (am 16. Januar 2014, 14:39, vor 11 Jahre) bearbeitet |
Twiebie |
|
||||
---|---|---|---|---|---|
If you want to filter by page_author you could do it like this:
You could also filter by page_ownerid with the user_id if the author is always the owner, which might prove to be a little bit more consistent as the page_author field might not always be set:
|
Kort |
|
||
---|---|---|---|
Try smth like this:
SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
foxhound |
|
||||||
---|---|---|---|---|---|---|---|
Wow, thank you both very much! That has been very helpfull.
And this gives you all most read pages from the last month of a certain category (and sub categories) (10 items per page):
I know most of you wont have any use for it, but maybe it helps someone like me someday ;)
Added 17 hours later: Is it possible to also make this work with comments? I tried things like this:
But it keeps giving sql errors. I also tried this plugin: http://www.cotonti.com/extensions/navigation-structure/581 but it seems to no longer work. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
|||||||
Dieser Beitrag wurde von foxhound (am 17. Januar 2014, 10:54, vor 11 Jahre) bearbeitet |
Kort |
|
---|---|
You're right. Pagelist can only generate a link to and a number of comments for each page entry (if the corresponding option is enabled in the plugin config). SED.by - создание сайтов, разработка плагинов и тем для Котонти
|