Pages (2): 1 2   
Member
Member
davidarnoult   30-03-2020, 13:50
#1

Hi,

I would like to publish newsletters from ZenPhoto RSS with mailchimp.
Is there a way to publish rss feeds based on tags?

Example : A feed for all elements with tags "ocean" AND "Germany".

[code]getRSSLink()
[/code] looks like to support

  • @param string $addl provided additional data for feeds (e.g. album object for album feeds, $categorylink for zenpage categories

Thanks for help!

David

Administrator
Administrator
acrylian   30-03-2020, 14:04
#2

No, sorry tags are not supported. You find a list of all supported options that can be added to a feed on the main class: https://docs.zenphoto.org/1.5.3/source-class-feed.html#169-233

In general getRSSLink() is a theme context dependent function so you cannot really use it standalone for your purpose anyway.

Member
Member
davidarnoult   01-04-2020, 07:27
#3

Thanks. Is the tag module could provide this kind of information using a function from it?

Administrator
Administrator
acrylian   01-04-2020, 08:09
#4

Not sure what you mean with "tag module". You can certainly get all information via the object model. Perhaps you should explain what you want to do and if you reallly need tags. RSS supports categories for news articles and albums (dynamic albums should work as well) for the gallery. So you could use those instead.

Member
Member
davidarnoult   02-04-2020, 22:15
#5

That is wiser and will be easier to manage using dynamic album for sure.

Can you precise how to call the album object (like a dynamic album) in the parameter $addl of printRSSLink?

Function requires an object:

case 'album':
if (getOption('RSS_album_image')) {
if (is_object($addl)) {
$album = $addl;
} else {
$album = $_zp_current_album;
}
$link = array('rss' => 'gallery', 'albumname' => $album->getFileName());
break;
}

Thanks!

Member
Member
davidarnoult   02-04-2020, 22:25
#6
  • @param string $addl provided additional data for feeds (e.g. album object for album feeds, $categorylink for zenpage categories
Member
Member
davidarnoult   02-04-2020, 22:35
#7

Example: printRSSLink('album','before the link','RSS Text', 'after the link', true, null, 'fr', 'dynamic album object';

Administrator
Administrator
acrylian   03-04-2020, 07:01
#8

Please take a look here: https://www.zenphoto.org/news/zenphotos-object-model-framework/

Member
Member
davidarnoult   03-04-2020, 12:31
#9

Thanks acrylian, it is clearer for me. In fact, I realize that with ZP, there's no limit thanks to this great development framework ;-)

Administrator
Administrator
acrylian   03-04-2020, 12:57
#10

Yep, the name "framework" is a bit misleading as this is actually just the base or core of Zenphoto actually ;-)

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.