Authentication needed for reading articles

Authentication needed for reading articles

Thursday 19 February 2009 1:05:07 am - 5 replies

Modified on Friday 20 February 2009 6:53:10 am by Thomas Off

Author Message

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.

You must be logged in to post messages in this topic!

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