Forums / Install & configuration / RSS Feed definition: One definition for multiple hostnames?

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

eZ debug

Timing: Jan 20 2025 00:29:27
Script start
Timing: Jan 20 2025 00:29:27
Module start 'content'
Timing: Jan 20 2025 00:29:27
Module end 'content'
Timing: Jan 20 2025 00:29:27
Script end

Main resources:

Total runtime0.9337 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.2344180.7891
Module start 'content' 0.00720.8137 770.0234538.0859
Module end 'content' 0.82080.1128 1,308.1094332.7344
Script end 0.9336  1,640.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4440210.0002
Check MTime0.00160.1724210.0001
Mysql Total
Database connection0.00110.113110.0011
Mysqli_queries0.868893.05191910.0045
Looping result0.00180.19161890.0000
Template Total0.904696.920.4523
Template load0.00210.228220.0011
Template processing0.902596.661420.4512
Template load and register function0.00010.011710.0001
states
state_id_array0.00080.088410.0008
state_identifier_array0.00100.105520.0005
Override
Cache load0.00180.1911200.0001
Sytem overhead
Fetch class attribute can translate value0.00100.109730.0003
Fetch class attribute name0.00100.107440.0003
XML
Image XML parsing0.00100.107230.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00570.6111320.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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