Forums / Extensions / eZ Newsletter / Authentication needed for reading articles

Authentication needed for reading articles

Author Message

Thomas Off

Thursday 19 February 2009 1:05:07 am

Hello,

I'm able to send out newsletters just fine now but one issue that's making me some headache is that I can't read the full articles on the website when clicking one of the "read more" links in the mail. It takes me to a site where I should then enter my login information. If I do so (using the admin account for the ez Publish installation), I don't see the article as expected but rather a page showing me details about the article (version, language, editions, etc.). Can anybody help me out of this?

Thanks in advance,
Thomas

Jon Staines

Friday 20 February 2009 5:20:04 am

Are you wanting people to login to read the articles?

Do you have a template for whichever class is being used for the article? If you are able to, it might be worth turning on debug and "list of used templates".

Thomas Off

Friday 20 February 2009 6:52:40 am

No, I don't want people to login for reading articles.

I didn't create or edit any templates, I just used the templates that ship with ez Newsletter to test whether the system fits our needs. Sadly, I have no further knowledge of ez Publish and do not know anybody using it so I don't know where to turn on debugging for templates, etc.

Jon Staines

Friday 20 February 2009 7:10:39 am

For the login, check the policies for the anonymous role and see if they have:
newsletter->read->No limitations
content->read->Section( newsletter_repository )

where newsletter_repository is whatever the section was called where the newsletters are kept.

To turn on debugging, look on the right hand side of the admin interface for a section called "Quick settings" and expand this if needed. Choose the siteaccess that you use to view the articles and when the page reloads check the "Debug output" and "List of used templates" boxes then click Set. Next time you look at an article you should see a section at the foot of the page titled "eZ debug" and in this will be a table showing what templates are being used. Be aware that by default this is visible to everyone (there is a setting to only show debug info to certain IP addresses) so only do this on a development server.

Thomas Off

Sunday 22 February 2009 11:59:57 pm

Thanks for your tip, I can read my newsletters now without the need to login.

When examining the used templates and taking a closer look on the URL, the question arose why the online view of the newsletter is located in the "ger" (as I chose German as the primary language) siteaccess and not (as I expected) in the "eznewsletter_site" siteaccess. Is this ok or do I have to adjust some settings to fix this?

Jon Staines

Monday 23 February 2009 2:10:04 am

I think you would need a separate subdomain if you wanted to use a different siteaccess, such as newsletter.domain.com. Otherwise your site will just go to the default one that matches the domain setting.

So long as the ger siteaccess has the settings needed (image.ini.append.php, override.ini.append.php and site.ini.append.php I think) then it will work fine through that. Normally I just use a new siteaccess for the newsletter admin side but let the public part use the public website siteaccess.

If you do want a separate siteaccess/subdomain then set your default host in the eznewsletter.ini to go to that domain and then set up the new siteaccess/subdomain in the usual fashion.

It might be there is a way to it an easier way, I've only touched the surface of eZ newsletter. If you are using it a lot or for anything vital it might be worth getting a support package from eZ Systems to help.

eZ debug

Timing: Jan 18 2025 10:25:37
Script start
Timing: Jan 18 2025 10:25:37
Module start 'content'
Timing: Jan 18 2025 10:25:37
Module end 'content'
Timing: Jan 18 2025 10:25:37
Script end

Main resources:

Total runtime0.7285 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 587.9922180.7500
Module start 'content' 0.00870.4478 768.7422545.6641
Module end 'content' 0.45650.2720 1,314.4063337.3438
Script end 0.7284  1,651.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5889210.0002
Check MTime0.00160.2173210.0001
Mysql Total
Database connection0.00060.088610.0006
Mysqli_queries0.626886.03562050.0031
Looping result0.00430.58562030.0000
Template Total0.692195.020.3460
Template load0.00180.248520.0009
Template processing0.690294.751220.3451
Template load and register function0.00020.022010.0002
states
state_id_array0.00170.228110.0017
state_identifier_array0.00120.169820.0006
Override
Cache load0.00150.2010300.0000
Sytem overhead
Fetch class attribute can translate value0.00140.189930.0005
Fetch class attribute name0.00140.196670.0002
XML
Image XML parsing0.00230.317130.0008
class_abstraction
Instantiating content class attribute0.00000.002490.0000
General
dbfile0.00650.8988270.0002
String conversion0.00000.000930.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
6content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs