![]() |
|
Include page excerps in the album page - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Include page excerps in the album page (/thread-13017.html) Pages:
1
2
|
Include page excerps in the album page - Eddie - 11-12-2017 Hi guys, I am so glad you built this amazing tool! It is what I have been looking for for such a long time! Include page excerps in the album page - acrylian - 11-12-2017 The simplest way is to use http://docs.zenphoto.org/function-printPageContent.html This would print the full page content. Since you want an excerpt you would have to use something like You can also use the core object model directly: Include page excerps in the album page - acrylian - 11-12-2017 Sorry, the example was shortened for better overview. Please review the link to the function documentation I included above which includes the parameters you need to set. Basically you need to set the lenght you want to truncate to and the indicator e.g. "(…)". Include page excerps in the album page - Eddie - 11-12-2017 Thank you, its getting a bit complicated for my amateur coding skills.. ;-) I leave it. Include page excerps in the album page - acrylian - 11-12-2017 It's really not complicated: Include page excerps in the album page - Eddie - 11-12-2017 Thanks!! Include page excerps in the album page - Eddie - 11-12-2017 Ha ha, I guess I need a crash course of php.. Can I challenge you more? Include page excerps in the album page - acrylian - 11-12-2017 You need to know the album name. That's the name in the url like Then use This works within the If you want to do this within a php fucntion you need to declare Include page excerps in the album page - Eddie - 11-12-2017 Thanks!!!! Include page excerps in the album page - Eddie - 11-12-2017 Thanks!!!! I do need a course ;-) Include page excerps in the album page - Eddie - 11-12-2017 Something like this? Include page excerps in the album page - Eddie - 11-12-2017 Thanks, I appreciate it. It's out of my league.. But .. it would be a nice add on in Zenpage if you could select what gallery or album you wish to display a page, and then it shows up as a standard thumb or excerpt so you have everything in one overview, albums and pages. Maybe this is just my need though.. Include page excerps in the album page - acrylian - 11-12-2017 This is really a specific need. But your example above was actually correct if the album name is "albumpath" and the page name (=titlelink) is "test". Maybe you could explain what you actually trying to do or what problem solve? This above only makes sense if the page is somehow related to the album. Include page excerps in the album page - vincent3569 - 12-12-2017 the good question is "what is you need?", because it is not clear for me. in back end, you can add a description on each album, with links to other albums, news or page (you have to use tinyMCE plugin and use "ZP" menu link). and in news/pages, with the "ZP" menu, you can add album thumb (or a thumb of this album), add the desciption of this album. Include page excerps in the album page - vincent3569 - 12-12-2017 and, if you really need to add page content in an album description, I think the best way is to add ` ` then you can manage you need by adding html/php code, in the album's Codeblocks. with that, you can add something like that, without testing album name: Include page excerps in the album page - acrylian - 12-12-2017 That's a way of course, too! Funny thing is I bascially never use codeblocks myself but rather multiple layouts ;-) Include page excerps in the album page - vincent3569 - 12-12-2017 Codeblocks are very usefull! on the two examples, I use dynamic album in a page and I add html/php code in Codeblocks. Include page excerps in the album page - acrylian - 12-12-2017 Of course they are and if I am not mistaken it was me who added that feature ;-) Just I personally don't really use them nowadays. Both your examples I would probably have done via layouts ;-) Include page excerps in the album page - vincent3569 - 12-12-2017 I use layouts here: but I am curious: how did you my two pages above with layouts? Include page excerps in the album page - acrylian - 12-12-2017 I would just create pages with the code you put into the codeblocks. If it's only a few pages you need specific stuff. I find this easier to maintain than codeblocks on the backend. Might be because I often create custom themes for people who really don't know and want to know code. But they can select layouts ;-) The flexibility of Zenphoto in this regard allows anyone to use it what it fits his needs best. |