cotonti.com : A little extended pagetextbyid https://www.cotonti.com Останні повідомлення в темі Cotonti en Sun, 11 Jan 2026 07:50:56 -0000 Dayver #41033 Виктор:

Данный плагин выводит только одну статью, есть ли возможность выводить несколько статей или список статей с анонсом. Спасибо.

Увы, разве что для каждой статьи делать свой вызов функции данного плагина что является извратом, лучше рекомендую посмотреть плагины news или pagelist они больше расчитаны на то что вам нужно.

]]>
Ср, 23 Вер 2015 23:17:08 -0000
Виктор Данный плагин выводит только одну статью, есть ли возможность выводить несколько статей или список статей с анонсом. Спасибо.

]]>
Ср, 23 Вер 2015 14:03:43 -0000
Kort Quickly, by turning caching off at the development stage and never turning it back on.

]]>
Нд, 07 Чер 2015 08:16:08 -0000
Harker #40866 Kort:

Cache is good only theoretically. In practice it is useless and can easily be discarded.

I would like to know how you arrive at this conclusion smiley

]]>
Пт, 05 Чер 2015 19:12:36 -0000
Kort Cache is good only theoretically. In practice it is useless and can easily be discarded.

]]>
Ср, 06 Травень 2015 10:25:25 -0000
Dayver Пн, 04 Травень 2015 05:41:09 -0000 Kort Pagelist does it all and more out of the box

]]>
Пн, 04 Травень 2015 04:03:28 -0000
Dayver Then this {fetched_article|pagefieldbypid($this, 'text')} not correct. Correct need {PAGE_FETCHED_ARTICLE|pagefieldbypid($this, 'text')} in same form (important to have the prefix "PAGE_" and right - upper case).

Plz may be in PM? Or Skype?

]]>
Thu, 30 Кві 2015 23:25:26 -0000
staleo Look. On a page A I need to put a text fetched from Page B. I create an extrafield fetched_article, input a Page B's ID there. Than, in page.tpl I insert {fetched_article|pagefieldbypid($this, 'text')} and than, on a Page A, there isn't anything fetched from page B.

]]>
Thu, 30 Кві 2015 22:43:03 -0000
Dayver fetched_article - what is it. and where

]]>
Thu, 30 Кві 2015 22:33:22 -0000
staleo Nope. In my case, {fetched_article|pagefieldbypid($this, 'text')} outputs nothing. :( Siena 9.14, just in case.

]]>
Thu, 30 Кві 2015 22:27:55 -0000
Dayver #40851 staleo:

But let me little extend the plugin's possible implementation. How about if I make a new global, like, {PAGE_TO_FETCH_FROM}. While editing a page, I input an other's page id into it, and a first page comes up with some of the fetched thing from the second page.

In terms of pagefieldbypid from you, Dayver, the global tag must be sort of {PHP|pagefieldbypid({PAGE_TO_FETCH_FROM}, 'text')} which of course doesn't work. How to make it go fine?

update:

Oops, pagefieldbypid seems to work a little unstable. First, I added a global tag {PHP|pagefieldbypid(518, 'fakel_name')} in a footer.tpl just to make sure it's fine. It was fine. Than, I added the same tag into a page.tpl, and the both places tag output nothing! Hmmm.

Try instead {PHP|pagefieldbypid({PAGE_TO_FETCH_FROM}, 'text')} put {PAGE_TO_FETCH_FROM|pagefieldbypid($this, 'text')}.

Strangely, I checked and in me one the same tag placed in different patterns worked everywhere and do only once request to the database because in this modification added caching.

]]>
Thu, 30 Кві 2015 21:57:35 -0000
staleo Wow, nice! For some reasons, it didn't work for me last time, but now, the global tag like {PHP|pagefieldbypid(521, 'game_stadium')} works awesome, thank you!

But let me little extend the plugin's possible implementation. How about if I make a new global, like, {PAGE_TO_FETCH_FROM}. While editing a page, I input an other's page id into it, and a first page comes up with some of the fetched thing from the second page.

In terms of pagefieldbypid from you, Dayver, the global tag must be sort of {PHP|pagefieldbypid({PAGE_TO_FETCH_FROM}, 'text')} which of course doesn't work. How to make it go fine?

update:

Oops, pagefieldbypid seems to work a little unstable. First, I added a global tag {PHP|pagefieldbypid(518, 'fakel_name')} in a footer.tpl just to make sure it's fine. It was fine. Than, I added the same tag into a page.tpl, and the both places tag output nothing! Hmmm.

]]>
Thu, 30 Кві 2015 21:17:37 -0000
Dayver No, How you insert tag in tpl? I test work with extra fields and plug work fine.

]]>
Thu, 30 Кві 2015 20:33:26 -0000
staleo You mean, an example of an extrafied I use? Like, {FAKEL_LOGO}, for example.

]]>
Thu, 30 Кві 2015 20:18:17 -0000
Dayver Plz write an example of calling a tag with an extra field and how his named in database/

]]>
Thu, 30 Кві 2015 15:31:37 -0000
staleo Hi Dayver,

Thank you for a modification, but it seems not to handle page's extrafilds. Text goes fine, title goes fine, etc, but as for any extrafields, it simply outputs Err. Unknown field.

]]>
Thu, 30 Кві 2015 12:43:22 -0000
Dayver Try this modification github.com/Dayver/cot-pagetextbyid special for you. Plz test him

]]>
Thu, 30 Кві 2015 01:11:18 -0000
staleo Hi folks,

Maybe you could help me with my issue. Do you guys remember pagetextbyid plugin, which fetches a page's text with an id and puts in anywhere you like? How about not only text, but anything else, like titles, extrafields, whatever? So that I could also use regular Cotonti expressions, like IF, in my page.tpl?

Are there any ways to extend pagetextbyid somehow, or even a plugin?

Thanks in advance!

]]>
Вт, 28 Кві 2015 20:43:41 -0000