Forums / General / ezp 3.2: news portal. how? please help as soon as possible.

ezp 3.2: news portal. how? please help as soon as possible.

Author Message

alt alt

Friday 26 September 2003 12:49:43 pm

I need to create site which collect (import) a lot of news articles (may be 100 per day) from others sites in and sort them in some categories (such as politics, finance and others). I must show on main page 3 description of newsarticles per category ( 3 descr. for politics, 3 descr. for fininance and so on). I must show this descriptions for latest articles in category. In categories' pages i must show all articles of the day or day before if I has not new articles today. I need easy navigation thru days, for ex http://site/finance/2003/09/27/article. All articles must have url to original site as attribute.

How i can do this??? How i can import so many newsarticles in automatic mode, because copy'n'paste by hands is too hard?
How i can shows 3 latest article in category with this (finance/2003/09/27/) folders organisation?

PLEASE HELP!

Alex Jones

Friday 26 September 2003 1:03:38 pm

You might want to see if you can grab RSS feeds from the news sites. If so, you could probably build a workflow to automatically pull the headlines into the system. I don't have the experience to tell you exactly how to do this, but I think it would be possible... There is a recent thread on one of the boards discussing automatic object creation via PHP which might prove insightful or inspiring.

Showing the three latest articles should be simple as all it requires is a standard fetch of items within a category sorted by published or modified date.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

alt alt

Friday 26 September 2003 10:47:19 pm

Does anyone know about import news and creation objects (incl. folders) in automatic mode a bit more? News will be imported most likely from text files. But it would be desirable to know as to import from RSS.

Please, show the right way to do this. (I would like to receive more than concrete advice, because I not so advanced user. Please help.)

Kåre Køhler Høvik

Monday 29 September 2003 7:17:30 am

RSS import and Export is planned for the 3.3 release http://ez.no/developer/news/ez_publish_33_release_plan . The implementation is almost finnished, and will be available as soon as we get public SVN up and running.

Kåre Høvik

alt alt

Monday 29 September 2003 11:06:44 pm

Whether it will be possible alteration for importation of text files of an any format? For example containing the information in lines of a kind: url | date | article?

eZ debug

Timing: Jan 18 2025 19:27:19
Script start
Timing: Jan 18 2025 19:27:19
Module start 'content'
Timing: Jan 18 2025 19:27:19
Module end 'content'
Timing: Jan 18 2025 19:27:19
Script end

Main resources:

Total runtime0.7227 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.9453180.8047
Module start 'content' 0.00650.5478 768.7500598.5547
Module end 'content' 0.55430.1683 1,367.3047337.3594
Script end 0.7226  1,704.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5911210.0002
Check MTime0.00160.2254210.0001
Mysql Total
Database connection0.00130.185810.0013
Mysqli_queries0.639688.49642020.0032
Looping result0.00220.30342000.0000
Template Total0.689095.320.3445
Template load0.00210.285320.0010
Template processing0.686995.047920.3435
Template load and register function0.00020.022610.0002
states
state_id_array0.00090.119410.0009
state_identifier_array0.00070.092020.0003
Override
Cache load0.00170.2300200.0001
Sytem overhead
Fetch class attribute can translate value0.00110.159040.0003
Fetch class attribute name0.00210.295970.0003
XML
Image XML parsing0.00130.178240.0003
class_abstraction
Instantiating content class attribute0.00000.002770.0000
General
dbfile0.00310.4274320.0001
String conversion0.00000.000730.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs