Media usage and awkwardness

Author Message

Alan Sparkes

Friday 19 November 2004 1:34:15 pm

I just looked at the website news demo. I visit ezpub every now and then but just dont get the GUI. I create some news and want to add an image. Media seems like a logical place to find my media objects so why cant i insert them?

How do you add an image to an article - something so simple for an enterprise CMS? :)

I am considering ezPub for a major NGO site revamp but am scared by the backend useability. I would happily employ some consultants to do advise but I am often put off by the apparent difficulty of the relatively simple. I am familiar with just about every open source CMS going but have yet to really get to grips with ezpub as it seems so awkward.

Someone please tell me I am just coming from the wrong angle and need to read the manual (again).

I love the folder based OO approach but find ezpub a bit daunting.

alans

if you dont know where you are going you will probably end up somewhere....

Balazs Halasy

Sunday 21 November 2004 1:37:10 am

Good morning,

Which demo did you look at? I guess you looked at the old administration interface (pre 3.5), it might be a bit scary/confusing. We're currently working on a completely new GUI that hopefully will be much more intuitive and user friendly. I suggest you take a look at it (if you haven't done this already):

http://admindevel.ezpublish.no

Log in with admin/publish. This is a demo of the beta which was released a couple of weeks ago. The first release candidate of 3.5 is just around the corner, it will probably be released during Tuesday the 23rd of November.

Images:
Feel free to use the "Media" part for storing and organizing your images (just like in a filesystem with folders, etc.). When editing an article, scroll down to the "related objects" list, which should be near the bottom of the screen. Click on "Add existing" - it will allow you to browse for the images that you have placed at misc. locations within the tree structure. If you have no pre-uploaded images and wish to upload one while editing the article: click "Add new" - it will allow you to upload an image on-the-fly. The image will be placed at the selected location. In addition, it will also be related to the article that you're editing. Once you have an image as a related object: copy the XML code that was generated for that image and paste it inside the article's body field. If you wish to avoid the copy/pasting business I suggest you check out the Online Editor (WYSIWYG admin interface plugin for XML fields), which allows you to add images by just clicking around in the interface.

If you wish to learn about the basics: check out the "Building an eZ publish site" tutorial or buy the "Learning eZ publish 3" book. Asking questions in the forum is also a nice way to learn. eZ publish might seem a bit daunting/complex to begin with and the initial learning curve is a bit steep. However, let me assure you that it is a very pleasant (not to mention extremely flexible) system once you get to know the basics and understand the logic. The best way to learn it is spending time with it, hands on.. hands on... good luck!

Sincerely Yours

Balazs Halasy

Alan Sparkes

Sunday 21 November 2004 1:39:56 pm

Thanks for the supportive encouragement, really appreciated. I Had a look at the 3.5 dev and I can see the advances immediately. I was actually waiting for the 3.5 release before i downloaded and committed myself to serious evaluation.

One thing that does strike me is whether it is possible to alter the order of articles, abit like saying i published this one last but i want ti third in the list not first.

Will look forward to learning.......

alans

if you dont know where you are going you will probably end up somewhere....

Frederik Holljen

Sunday 21 November 2004 2:42:30 pm

Yep, in 3.5 look at the bottom of the sub-items window, there is a control named sorting. You can use this control to select how the sub-items will be sorted, not only in the administration interface but for the entire site. For complete control over the order, choose priority.

Balazs Halasy

Sunday 21 November 2004 3:17:24 pm

Hi again,

What you're probaly looking for is a multi-sort method that lets you sort your articles first by their publishing timestamps and then the possibility to override that with your own settings, correct? If so: this is possible to to with eZ publish, but you'll have to do it from the template that lists your articles. What you'll need to do is basically tell eZ publish that it should go ahead and sort your articles by their publish timestamps and then sort them by priority:

{let articles=fetch( content, list, hash( parent_node_id,     ID,
                                          class_filter_type,  include,
                                          class_filter_array, array( 'article' ),
                                          sort_by,            array(array( priority,  true() ),
                                                              array( published, false() ) ) ) )}

In the admin interface you'd set it up to use priority listing. Now, notice that all nodes published have their default priority set to 0 (zero). If you wish to override (place some news at the top (as permanent top story)) you'd simply set that article's priority to a negative value and thus it will pop up as first (before all other articles which have priority = 0 and are sorted by their timestamps).

Balazs

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 18 2025 22:20:34
Script start
Timing: Jan 18 2025 22:20:34
Module start 'layout'
Timing: Jan 18 2025 22:20:34
Module start 'content'
Timing: Jan 18 2025 22:20:34
Module end 'content'
Timing: Jan 18 2025 22:20:34
Script end

Main resources:

Total runtime0.5519 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.3047152.6250
Module start 'layout' 0.00550.0037 741.929739.4453
Module start 'content' 0.00920.5414 781.3750609.3906
Module end 'content' 0.55060.0013 1,390.765616.1641
Script end 0.5519  1,406.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.5286160.0002
Check MTime0.00120.2153160.0001
Mysql Total
Database connection0.00090.168110.0009
Mysqli_queries0.491989.1309650.0076
Looping result0.00060.1075630.0000
Template Total0.523594.920.2618
Template load0.00210.371520.0010
Template processing0.521594.487120.2607
Template load and register function0.00030.047310.0003
states
state_id_array0.00090.169910.0009
state_identifier_array0.00130.234020.0006
Override
Cache load0.00180.3239350.0001
Sytem overhead
Fetch class attribute can translate value0.00060.102330.0002
Fetch class attribute name0.00130.244070.0002
XML
Image XML parsing0.00110.202630.0004
class_abstraction
Instantiating content class attribute0.00000.003580.0000
General
dbfile0.00090.1629220.0000
String conversion0.00000.001640.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs