10 Nov 2011

feedshare.ez.no > All forums (topics and replies)

Re: ezoe : Not found error in customTags popup

Hello Franck,

I'm sorry I have not yet encountered this problem before.

What version of eZ Pubish are you using?

What version of ezoe are you using?

If you have a set of reproducible instructions to recreate the issue using the latest community build available you may wish to consider filing an issue on http://issues.ez.no/ezoe

I hope this helps ...

Cheers,

Heath

10 Nov 2011 2:44am GMT

Re: Single login through different SiteAccess (using sub-domains)

Edit your site.ini like that :

[Session]
SessionNameHandler=custom
SessionNamePerSiteAccess=disabled

Set a common cookie_domain for all your sub domains! To do that you can edit your apache virtual_host and add that line into it :

php_value session.cookie_domain ".mysite.com"

Thanks Yannick, it was really useful, but I needed to isolate groups of siteaccess under the same domain, it's possible using site.ini / [Session] / SessionNamePrefix. You just have to set the same value for each siteaccess you want to share the session.

Example :

I have siteaccesses siteA, siteB, siteC, siteD and siteE. I want siteA, site B and siteC to share a session, and siteD and siteE to share another session.

In

[Session]
SessionNameHandler=custom
SessionNamePerSiteAccess=disabled
SessionNamePrefix=fooPrefix

In

[Session]
SessionNameHandler=custom
SessionNamePerSiteAccess=disabled
SessionNamePrefix=barPrefix

10 Nov 2011 2:14am GMT

Re: user ans rules

Hello Amine,

I took a few minutes and wrote a custom owsimpleoperator template operator function on your behalf.
When you use this you should be able to do so without touching the code.

This solution provides you a new custom template operator named 'member_of_role' which you would use like this ... (note this is a simple static example you will want to use dynamic values instead of course.

{def $userID=10
        $roleID=1
        $isMemberOfRole=$userID|member_of_role( $roleID )}
 
{if $isMemberOfRole}
 
Success! This userID {$userID} is a member of this roleID {$roleID} ...
 
{else}
 
Failure! This userID {$userID} is *not* a member of this roleID {$roleID} ...
 
{/if}

The custom 'member_of_role' operator accepts UserID and RoleID (Both required) and fetches the user, user roles, iterates over user roles and compares RoleID param till it finds a match and returns true, false if no match is found / etc.

This operator uses builtin / core eZ Publish PHP class methods for the very best in terms of reliability and stability.

share.ez.no is terrible to use when trying to paste pre formated (whitespace, no tabs, plain text) source code within the ezoe custom plugin input which has been written outside of ezoe and pasted in.

This off and on is a real problem with this site. It's no wonder so few folks post source code within the forums these days ... So I have posted my example solution source code in a pastebin instead, http://ezpublish.pastebin.ca/2093464

Please let me know how this solution works for you.

One final note: This code can also be called statically within custom PHP code without making any changes.

Here is an example PHP call of the function which powers the operator: ''

Please remember to clear cache and regenerate autoloads be for using this solution within eZ Publish!

I hope this helps ...

Cheers,

Heath

Edit: I found some extra time later in the evening and tested the operator in templates and it worked perfectly (as well as via PHP directly). Best wishes!

10 Nov 2011 1:34am GMT

Re: user ans rules

Hello Amine,

Short answer: No

Long answer: Not really. I tend to compare by RoleID rather than RoleName but then again each developer has different preferences when it comes to using ids or strings as unique identifiers.

Also there are no operators to help you perform this calculation available by default.

The closest one available is the 'member_of' fetch function. Which only fetches the roles associated with a UserID and does not provide any comparison features.

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/user/Fetch-functions/member_of

If you do this regularly, consider creating a template operator to perform these features in a more reusable way. I suggest using the newly released (and very simple to use) owsimpleoperator extension which makes it very simple to create custom template operators quickly. http://projects.ez.no/owsimpleoperator

I hope this helps ...

Cheers,

Heath

10 Nov 2011 12:35am GMT

09 Nov 2011

feedshare.ez.no > All forums (topics and replies)

Re: Getting URL aliases in different languages

Hi Jérôme,
I tried your tip but the template fetch function didn't work.

Looking at the error log it seems the problem was the parameter 'language': you have to change it to 'locale'

roberto

09 Nov 2011 10:21pm GMT

Re: ezcomments 1.3.0-dev and wrong language_id

This is a bug I am getting as well. Instead of:

{def $language_id = $attribute.language.id}

Which doesn't work, I did:

{def $language_id = $attribute.object.current_language_object.id}

This way I get all the comments for the current language id. Works great! Although this should be addressed by eZ.

09 Nov 2011 7:14pm GMT

Re: User Profile

Hey Domenico,

eZ Publish includes a generic module view (/user/edit) which shows a user profile with links to couple of functionalities relevant to users like bookmarks, notificiations and so on.

It also has buttons for profile editing which opens up a standard /content/edit view of user content object.

You can build upon those views and templates if you need something custom.

Regards,

Edi

09 Nov 2011 4:40pm GMT

Re: eZ Find - FieldsToReturn

Hey Matthieu,

yeah, I figured out that it returns only fields prefixed with "meta_" (forgot to update the post), which is a real shame because I needed this functionality couple of times to avoid the MySQL database completely.

I'd say go for it with pull request as I also don't see why this would be by design.

09 Nov 2011 4:00pm GMT

Re: eZ Find - FieldsToReturn

I've been facing this problem when calling eZ Find with asObject to false (for performance purpose). There is a loop ezsolr.php (around line 900) that removes every result that are not with prefix "meta" or "as" (for solr storage).

It means that if your FieldToReturn is a attribute it will not be return.

I would be tempted to make a pull request on this but I guess it's by design to remove attribute (don't know why thus ...).

09 Nov 2011 3:46pm GMT

user ans rules

Salam,

Is there a way to test if a user has the role A, instead of spending by $user.roles.1.name | eq ('A') ??

tks

09 Nov 2011 3:03pm GMT

ezoe : Not found error in customTags popup

Hello,

in XML blocs, the customTag insertion popup displays a "not found" error.

The URL called in the popup is not correct : /ezoe/tags/74/9/custom/undefined

It should be : "/ezoe/tags/74/9/custom/" to insert a new customTag.

It looks like a JS error sending "undefined" instead of an empty string.

Do you have any idea what might cause this error ?

09 Nov 2011 1:39pm GMT

User Profile

There is a module or an extension in eZPublish to show and edit user profile (like this community forum)?

Thank you.

09 Nov 2011 10:44am GMT

Re: eZINI don't save changes

> In fact, parameters are optional

Sure they are, but not if you want to make the class do what you want :)

09 Nov 2011 8:56am GMT

Re: Cannot set attribute object relation browse type

Hi Heath,

Thanks for the help and pointers on how to do it the correct way. Will go through the doxygen articles you mention.

Thanks again,

Janewit

09 Nov 2011 8:16am GMT

Re: Php script to count visits.

Nice comment.Thanks Heath

09 Nov 2011 8:02am GMT

Re: site map xml with language listing in main site

Though as I think about this a little more I realize that it would prolly be best to modify the extension I shared above to perform this task.

Specifically just a small part of this file, http://svn.projects.ez.no/all2egooglesitemaps/trunk/all2egooglesitemaps/cronjobs/generate.php

I don't know if this helps you but ... I took a few minutes to re-write a copy of the above cronjob part (php script) to generate the content as I described above and write all the content into one sitemap file (without the language in the filename as that no longer applies). The rest of the script functions as it did before. I'm afraid while I had time to write this code, I did not have time to test it or run it myself.

Still forgoing anything I missed in my haste it should generate a single sitemap with content content in every language used in individual siteaccess settings (you must have a siteaccess configured for each language, possible limitation in some configurations) as you need.

http://ezpublish.pastebin.ca/2093265

I hope this helps ...

Cheers,

Heath

09 Nov 2011 6:43am GMT

01 Nov 2011

feedNews

eZ Systems takes over High-Tech Gruenderfonds

Successful exit for German IT technology and now one of the services offered by eZ Systems.

With the acquisition of the German high-technology start-up, YOOCHOOSE, the Norwegian company eZ Systems AS is expanding its content management system, eZ Publish Enterprise, with one of the world's leading recommendation engines. YOOCHOOSE was founded in 2009 by Dr. Uwe Alkemper and Michael Friedmann, and convinced High-Tech Gruenderfonds to provide seed financing at an early stage. Behind YOOCHOOSE - a spin-off company from Deutsche Telekom Laboratories in Berlin - lies a high-performance, patented recommendation system, which enables companies to significantly increase their revenues on the Internet using personalized recommendations.

01 Nov 2011 1:07pm GMT

26 Oct 2011

feedNews

eZ Delivers Analytics Optimizing Customer Experience

Through the acquisition of odoscope, eZ extends the powerful eZ Publish content management platform with behavior analysis optimizing the end-customer engagement.

26 Oct 2011 6:53am GMT

20 Oct 2011

feedNews

New Cockpit Available for Better Productivity

eZ Content Cockpit is the latest extension from the eZ Market that offers a cohesive website overview to facilitate better editing and maintenance of dynamic content.

20 Oct 2011 7:43am GMT

13 Oct 2011

feedshare.ez.no > Articles and Tutorials

Building native mobile applications with the eZ Publish REST API

eZ Publish is a Web Content Management System that provides a platform to publish content via any channel. Its powerful presentation engine enables you to create websites and pages that display your content in a variety of renderings. Its powerful API directly and simply integrates your content with any web-enabled application on any device, such as the iPad, iPhone, or an Android device, without ever interfering with, or impacting the platform itself.

At the end of this tutorial, you will have learnt the basics of mobile application development for both iOS and Android platforms, consuming content from eZ Publish. CMS-side adjustments for the mobile channel will be acquired too. This cheatsheet will help you leverage the multichannel capabilities of eZ Publish, and its REST API in future projects, in a more systematic fashion.

13 Oct 2011 2:21pm GMT

19 Sep 2011

feedNews

eZ receives SID-award “Innovation 2011”

Award cites the most important advantages of eZ Publish Enterprise: universal multichannel functionality and strict separation of form and content.

19 Sep 2011 8:08am GMT

16 Aug 2011

feedshare.ez.no > Articles and Tutorials

Image Maps in ezwebin Banners

Beginners guide for learning how to use image maps in the ezwebin extension.

16 Aug 2011 12:40pm GMT

09 Aug 2011

feedNews

eZ adds Recommendation Engine

With the acquisition of YOOCHOOSE GmbH, eZ Systems AS can now deliver personalized content through a new visitor recommendation engine.

09 Aug 2011 8:47am GMT

14 Jul 2011

feedNews

eZ Systems expands in the Asian market

Opening two subsidiaries in Singapore and Beijing, eZ Systems announces today that it is going to intensify activities in the Asian market.

14 Jul 2011 11:42am GMT

07 Jul 2011

feedshare.ez.no > Articles and Tutorials

Building mobile browser and hybrid applications with eZ Publish

eZ Publish is a Web Content Management System that provides a platform to publish content via any channel. Its powerful presentation engine enables you to create websites and pages that display your content in a variety of renderings. Its powerful API directly and simply integrates your content with any web-enabled application on any device, such as the iPad, iPhone, or an Android device, without ever interfering with, or impacting the platform itself.

At the end of this tutorial, you will have learnt the basics of mobile application development for both iOS and Android platforms, consuming content from eZ Publish. CMS-side adjustments for the mobile channel will be acquired too. This cheatsheet will help you leverage the multichannel capabilities of eZ Publish, and its REST API in future projects, in a more systematic fashion.

07 Jul 2011 1:29pm GMT

28 Jun 2011

feedNews

eZ Announces Record Breaking Success at Annual Conference

eZ Systems, the award winning Open Source Web Content Management Platform, today announced the 2011 Award Winners from the eZ Conference held in London, June 16-17, 2011. The event drew more than 260 attendees from over 19 different countries showcasing the continued commitment within the eZ Community.

28 Jun 2011 2:27pm GMT

09 Jun 2011

feedNews

eZ is proud to announce the nominees for eZ Awards 2011

On the evening of Thursday June 16th, special recognition will be given to key people within the eZ Ecosystem and the Open Source community.

eZ Awards is an event hosted by eZ Systems as part of the eZ Conference.
eZ Awards recipients have contributed to Open Source and the eZ Ecosystem in an exceptional way both through technology and commercial perspectives.

09 Jun 2011 1:52pm GMT

18 May 2011

feedNews

Next Webinar: Connecting the channels - Print to web and web to print uncovered

Join us for a Webinar on May 25

18 May 2011 9:47am GMT

06 May 2011

feedshare.ez.no > Articles and Tutorials

eZ Publish 4.2011 Community (4.5) with Nginx and PHP-FPM on Debian 6 (“Squeeze”)

After completing this tutorial, you should have a working eZ Publish 4.2011 Community (or 4.5) installation running on a single Debian 6 server with the following features:

06 May 2011 4:45pm GMT

18 Apr 2011

feedshare.ez.no > Articles and Tutorials

Creating Custom Admin Modules

In this tutorial we will explore how to add custom modules and views to the CMS. By doing this you can extend the functionality of the back office to use your custom PHP to carry out various tasks. Once this tutorial is complete you should be comfortable with creating modules and views for any siteaccess with the CMS and be able to appreciate situations when creating custom modules and views would be suitable.

18 Apr 2011 9:42pm GMT

feedNews

eZ Systems enters South Africa: Partners with Panorama Digital

Skien, Norway 19/04/2011 - eZ Systems today announced a partnership with Panorama Digital in South Africa.

18 Apr 2011 3:13pm GMT

16 Mar 2011

feedshare.ez.no > Articles and Tutorials

Running eZ Publish daemons in shared virtual hosting environment

At the end of this tutorial, you should have enough knowledge for setting up the eZ Find Solr daemon, and ezodf (OpenOffice.org) conversion daemon in a shared virtual hosting environment.

16 Mar 2011 10:51am GMT

01 Mar 2011

feedshare.ez.no > Articles and Tutorials

How to contribute to eZ Publish using Git

At the end of this tutorial, you should be able to contribute to eZ Publish Community Project, eZ Publish's kernel developed by both eZ and the eZ Community. You will learn how to use git and github in the scope of this participation, and be given the bunch of best-practices to follow for smooth collaboration.

01 Mar 2011 9:07pm GMT

22 Feb 2011

feedshare.ez.no > Articles and Tutorials

Translating

At the end of this tutorial, you should be able to contribute to the eZ Publish Localization project using GIT. Localizing means adding new translations to eZ Publish, enhancing existing ones, and adding or enhancing locales (currencies, week days names, date formats, etc. ).

22 Feb 2011 10:53am GMT

11 Feb 2011

feedshare.ez.no > Articles and Tutorials

Transforming jQuery plugins into eZ publish extensions

In this tutorial we will see the main steps to transform a jQuery plugin into an eZ publish extension, in this case an eZ flow block.

11 Feb 2011 12:06pm GMT

24 Dec 2010

feedshare.ez.no > Articles and Tutorials

Extending eZ Publish’s REST API - Developer Preview #2

At the end of this tutorial, you will be able to embed your custom RESTful interface into eZ Publish, to be further consumed by any 3rd party-service :

24 Dec 2010 2:45pm GMT

10 Dec 2010

feedshare.ez.no > Articles and Tutorials

An Introduction to Developing eZ Publish Extensions

Most Content Management System requirements can be fulfilled by eZ Publish without any custom PHP coding. But sooner or later experienced eZ Publish implementers get to the point where a project needs some special functionality and it becomes necessary to develop extensions.

(This tutorial was initially published on 21/01/2008, and refreshed to match the 4.x series on 10/12/2010)

10 Dec 2010 9:24am GMT

09 Dec 2010

feedshare.ez.no > Articles and Tutorials

Creating a simple custom workflow event

This tutorial will guide you through the development of a simple eZ Publish workflow event. At the end of the tutorial, you should be able to create your own workflow event, configure a workflow that would execute the event and configure workflow triggers in the admin interface.

Note : the PDF version of this tutorial, as well as the downloadable extension are here.

09 Dec 2010 4:01pm GMT

18 Nov 2010

feedshare.ez.no > Articles and Tutorials

A Quick and Friendly Introduction to eZPersistentObject

In this tutorial we will learn how to use CRUDfeatures by extending eZPersistentObject class, so it will be possible to Create, Read, Update, and Delete objects in the database in a straightforward way, without writing SQL queries.

18 Nov 2010 5:11pm GMT

26 Oct 2010

feedshare.ez.no > Articles and Tutorials

Encapsulating e-mails for usability and spam protection

At the end of this tutorial you will have a new way of encapsulating e-mails avoiding crawlers to collect and use them as spam. Users at the frontend will have a well-known e-mail sequence to click thus avoiding confusion. Developers will not sacrifice usability versus spam-protection.

26 Oct 2010 8:15am GMT

18 Oct 2010

feedshare.ez.no > Articles and Tutorials

Fetching User Objects with PHP - part 2

At the end of this tutorial you should be comfortable with exporting multiple users from PHP scripts into a external file using a cronjob. You should also be comfortable with filtering fetch statements in PHP.

18 Oct 2010 8:38am GMT

24 Sep 2010

feedshare.ez.no > Articles and Tutorials

Fetching User Objects with PHP - part 1

At the end of this tutorial you should be comfortable with exporting user information from PHP scripts.

24 Sep 2010 2:57pm GMT