EZ Publish Articles - ezpublish

I have been using EZ Publish for a while but I am still a bit confused about the difference between the Article, Article (Subpage) and Article (Mainpage) content classes.
Just wondering what contexts these are meant to be used in.

Content classes in eZ Publish are a dime a dozen. eZ Publish ships with a bunch of 'default' content classes but you are not expected to use all of them. In sites I work on for instance I generally get rid fo the subpage and mainpage versions of the article and then modify the article class to better fit my needs. That is one of the strongest attributes of eZ Publish, the ability to create custom classes in the admin area and then just writing a custom template to serve up the content. Full documentation on what exactly an eZ Publish Class is can be found here. Remember to hit up the eZ Publish Share site, a place for eZ Publish developers to share questions and answers.

The if you are using one of the built in designs (ezwebin for instance), the Article would typically be used for single page articles and the Article (Mainpage) and Article (Subpage) would be used to construct multi-page articles.
Use the Mainpage as the container and fill it will subpages (one for each page of your article) and the templates should add an Article Index with links to each page of the article.
If you want articles to be presented as just a single page use the plain Article class.

Related

How to create a custom component for Joomla 3.3?

I'm new to Joomla and I'm confused, so I need your advice on this. I have to create a plugin which connects to an API and shows base64 PDF on a page. So, I created my PDF viewer, but I don't know how to pack it up in Joomla. It's not just "custom HTML", it has to be a separate package so it can be installed on other Joomla sites. I guess it also has to have a database to store some settings (e.g. API URL). I want users who install this extension to be able to go to Modules > New Module > PDF Viewer, and from there they can set up API URL for that module. Users will be able to create modules of this type on multiple pages and to be able to set different API URL for every page. So, what do I need? An extension, component, module...? I searched for tutorials and read Joomla docs but I'm still confused. Please help me, what to do, some guide, where to put files, where to upload them etc. Thanks
You could actually go about this with a component, plugin or module:
I think a component would be the most complex in this situation. As you are probably already aware, a component is like an application which renders itself in the main click of the website.
If you were to create a plugin, you could generate a short code snippet based on the name of the plugin which could then be added to an article, which would then display the PDF within the article. For example:
{PDFgen=NAME_OF_PDF}
or
{PDF}name_of_file.pdf{/PDF}
Creating a module in my opinion would be the easiest. As once you've added the functionality to render the PDF, the user can either display it as a module (like a sidebar widget), or they can also import it in their article using a built in Joomla feature. Assign a custom position to the module, then add the following anywhere within an article: {loadposition XXX}, where XXX is the name of the custom position you assigned to the module.
Out of all honest, you should develop it in a way you feel most comfortable with. Just make sure when you do it, that you stick to Joomla coding standards.
Hope this helps

How to integrate Magnolia CMS with Spring app in limited range

I have a question to Magnolia CMS (integrated with Spring) users.
I have to write e-shop integrated with CMS where we can divide all pages into two categories:
Edited and added by admin
static pages like user account settings, shopping cart etc.
First ones, must be totally customizable by admin - I mean, admin must be able to create his own template, add text areas or graphics/video whenever he wants. He also must be able ( this is very important) to create new products which must be also stored in db to be accessible for the application code ( to fill the products list by myself in the code or to set the prices on the static admin pages).
So user can add as many products as he would like, create separate template for some of them and I have to be able to search for this products in db ( for example when user try to use search criteria). The search panel must be created by me - but where admin will place it is up to him.
The second type of pages are static pages done in JSP and I do not expect to change it using CMS.
As the second type of pages is of course not a problem, I do not know what CMS solution I should use for first type of pages.
I thought about Magnolia CMS, but as I can see all templates must be created by programmer in the code.
Also I'm not sure if it's possible to implement mechanism to maintain products ( inside the e-shop) - from one hand admin must be able to add templates for them in CMS, but I must be able to access them from the code ( to maintain them at shopping cart, make invoice etc). The product prices are set from admin panel ( static pages) as well- not from CMS of course. Maybe I can add any single product at the static pages ( insert it into the db) and somehow connect CMS page with it ?
I also need to add that main page template must be designed by HTML designer, so perhaps it would be plain HTML and this main template would be updated due to the admin needs in CMS.
Cloud anybody please advice me the best CMS solution where I can achieve all this ?
Best Regards
I've seen fair number of shops implemented that way with Magnolia where you use spring & web flow to manage a shopping cart and checkout process, while letting editors to create & customise products & categories & promos available in the shop.
You can also get similar (w/o spring) integration just by installing shop module of Magnolia. It's product and product category management might come in handy even if you were to replace checkout by your own.
To answer the other questions and stipulations
you can write your templates in ftl and models in groovy and have those hosted inside of the repository, thus giving access to them to editor and allowing her to change whatever needs to be changed. However there is also danger in that since templates are responsible for generating html, editor might be able to break html layout by making changes directly to the templates. While you want editor to create new products and modify existing ones, Magnolia lets you separate template of products from the content of products so you can let editor to edit just all the fields that you deem editable for given product without having her to ever access html or ftl directly.
as you mention, html will come from designer, so what you pbly want is to take that html, break it into functional blocks that repeat in multiple pages, save it as ftl templates and replace sample text in there with FM tags to retrieve such data from Magnolia. Actually, even better, download the STK static prototype and hand it over to your graphic designer. Tell her to create design by changing css/js/images only, but not to change structure of the html itself in the prototype, then you can truly just drop in css/js/img provided back to you by the designer.
regarding static pages - you can always serve them from Magnolia even if you don't expect anyone to ever edit them (since it usually happens sooner or later that someone wants to edit them) or you can simply configure bypass for the url for such pages and have Magnolia ignore them so they can be served by underlying application server container
to bring in Spring based application, you might consider looking in more details at and using Magnolia's Blossom module which will in turn let you annotate your spring controllers to be treated as Magnolia templates to make integration even more simple.
HTH, Jan

How do I create/obtain a permalink to user profile in Joomla?

I have just migrated a lot of content from an old webpage to a 2.5 Joomla website. Almost every imported page contains a contact detail of one person from a 3-10 people pool.
I would like to define these contacts as Joomla contacts and just simply link to these profiles from every page.
How do I find or create a permalink to these user profiles?
I don't know of a native Joomla way of doing this, but due to the frequent ugliness of Joomla urls, we use YOURLS as an all-around link shortener on all of our sites. It comes with a front end that users are able to create their own links, etc., but we just use the mechanism, and some of the other features on the admin site of things - the mechanism itself is quite straightforward and easy to use once you create one to see what needs to be in the database for it to do it's magic.

Oracle WebCenter Content Presenter Template

I need to create a content presenter template and integrate it into webcenter. But I am new in this technology. Can anyone give any reference from where I can learn these stuff, any step-by-step tutorial. Any information will be very helpful.
In addition to the resources Peter provided, this will help you as well:
Creating and Using Page Templates in Oracle WebCenter Portal Applications - In a WebCenter Portal application, page templates provide a means for creating the application’s pages with a common look. Each page of an application is stamped out from a page template, which provides common elements for the page. The individual pages can add their specific content, extending the page template. In this training module, you learn how to create and use page templates in both WebCenter Portal applications and in WebCenter Portal: Spaces.
Recorded Presentation 50 minutes, 49.3 MB
Presentation slides (PDF) -- you'll have to visit the page above to find
Related Documents -- you'll have to visit the page above to find as I cannot post more than 2 links.
Here are a couple of links to the documentation. The best ones are the Users Guide and the Developers Guide.
Publishing Content Using Content Presenter
Creating Content Presenter Display Templates

Constructing membership site with joomla

Hi i run Joomla site on htpp://www.deeptechtons.net and wanted to construct a membership based subscription where people pay to get premium articles.
Exactly the same as tutsplus site network.[ i think it is custom but some solution must be available for joomla]. I already looked into extensions directory nothing fits my purpose.
Some requirements i need are,
1.Custom Profile fields for members.
2.Any time un-subscribe from plan.
3.Simple interface to show plans available
4.Payment processor's support
Also how do i hide the articles for premium members from not showing in search results, both joomla and google.
Joomla has teensy, weensy setting that hides un categorized articles in search plugin.
If you are running your website on Joomla 1.5 then PayPlans might be the better choice. It blends very well with JomSocial and your design. And yes, its very much customizable.
If you want to use 1.5, then Joomla 1.5 + JomSocial + AEC. I would also use K2 for the content because it would make filling your request about keeping content out of Google trivial. I wrote an upgrade to the K2 content display module that would allow you to leave all of your content as public and only display the intro text to non-registered users. Then you display the member content in a module that only displays to registered users. Very easy to maintain and implement.

Resources