RSS Feed definition: One definition for multiple hostnames?

Author Message

Marco Zinn

Friday 25 March 2005 2:57:29 am

Hi,
i have a ez 3.4 site running, which i want to export from RSS feeds for.
Issue: The Site can (and must) be adressed using multiple Hostnames, ie. http://www.bla.de , http://bla.de and http://www.bla.com (using the same siteaccess everywhere).
I need to have the RSS feed available for all of these hostnames. This works fine. But: In the RSS export definition, i need to enter a URL of the site, which is prependet to all "LINK" element of the individual items. So, i need to decide, which Hostname will be used for the RSS feed item's links , which actuall will redirect all Feedreaders to ONE of the "n" hostnames.

This is a show-stopper for me: Some clients will not be able to open the site with the DNS name of the host. They need to use the WINS name (this is an intranet system). Other clients cannot use the WINS name, the need to use DNS (or IP).
So, what i'd need is, that ez does not use a "fixed" URL for the hostname, but re-uses the hostname, that was used in the browser HTTP request for the RSS feed. So, i must create an indivual RSS-Feed for each hostname.
I think, there is a variable called {hostname} or so available in templates. This should do it, but i cannot configure the RSS export to use this.
I tried to omit the site URL completly (in the RSS export defintion), but that won't work with the RSS readers (and it's not valid RSS anyway, i think).

Site-question: I didn't find any good documentation on if the LINK-Urls of the items may be relative the the channel URL or if the need to be "fully qualified", that is starting with http://hostname/... . If they can be relative to the channel's URL, this might make it easier for ez ;)

Any comments are welcome. Mind, that i talk about ez 3.4, don't know, if there are enhancements about this in ez 3.5 or 3.6.

Thanks in Advance.

Marco
http://www.hyperroad-design.com

Kåre Køhler Høvik

Tuesday 12 April 2005 1:16:48 am

Hi

The RSS feeds are staticly generated due to performance issues. It's therefore impossible to configure it to your request at the moment.

The best solution in your case might be to create a template override for f.ex : /content/view/rss/<node_id> and write templates for generating the RSS feed. It's possible to cache this, so performance should be ok.

Kåre Høvik

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 00:30:20
Script start
Timing: Jan 20 2025 00:30:20
Module start 'layout'
Timing: Jan 20 2025 00:30:20
Module start 'content'
Timing: Jan 20 2025 00:30:20
Module end 'content'
Timing: Jan 20 2025 00:30:20
Script end

Main resources:

Total runtime0.7154 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.6094152.6563
Module start 'layout' 0.00460.0022 742.265639.4922
Module start 'content' 0.00680.7073 781.7578532.9766
Module end 'content' 0.71410.0013 1,314.734412.0938
Script end 0.7154  1,326.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.3802160.0002
Check MTime0.00120.1611160.0001
Mysql Total
Database connection0.00080.105810.0008
Mysqli_queries0.673294.0961540.0125
Looping result0.00050.0643520.0000
Template Total0.691796.720.3458
Template load0.00180.250920.0009
Template processing0.689996.433120.3449
Template load and register function0.00010.020310.0001
states
state_id_array0.00070.094410.0007
state_identifier_array0.00080.115720.0004
Override
Cache load0.00150.2095200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.098520.0004
Fetch class attribute name0.00100.144840.0003
XML
Image XML parsing0.00120.166920.0006
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00110.1503210.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs