Is there a way to find out how many portlets are there in any page? - portlet

The problem is, say, i am having a page xyz. And in that page there are 20 portlets. How can i find out the names of all portlets placed on the page.
Provided i am having the admin privilege.

In Liferay the easiest way to do this is probably in the theme, you want to get a hold of the Layout object, that will let you explore the layout and pull references to the portlets on a page.
Some references:
http://www.liferay.com/community/wiki/-/wiki/Main/Layout%20Template#section-Layout+Template-AvailableVariablesInTemplate
http://docs.liferay.com/portal/5.2/javadocs/portal-service/com/liferay/portal/model/Layout.html

The two portlet standards (JSR-168 and JSR-286) don't specify any way of finding out the names of the portlets placed on the page.
But, it is possible that each portal provides a proprietary way of achieving what you want to do.

Related

AEM 6.3 Different template of the same page for each audience (target)

Is it possible to have different templates of the same page for each audience/target?
This is the scenario:
Suppose I have the following audience/targets: Users, Super Users and Default.
Say I want to see my index page showing a different template depending on the audience/current logged in user.
Is this possible? How would you accomplish it?
If this is not possible using templates, is there another way to solve this?
Thanks!

AEM Personalisation without Target integration

I have a requirement to personalise the banner content of my site homepage depending on the other site sections (segments) a visitor has previously and/or most commonly visited.
My site is basically split into 3 sections SectionA/SectionB/SectionC. Assuming a visitor frequents the SectionA most often, one would assume I could class them into sectionA segment. Likewise for the other site sections. Each of my site sections is Tagged with the name of that section.
The idea is that next time the visitor visits the my homepage, the content displayed would then be personalised to match the segment they are assumed to belong too.
I have plenty of experience personalising content with Adobe Target, but next to zero without. Am I right in thinking this can be achieved via clientContext or contextHub?
PS: I have managed to get this working with contextHub tagCloud with segments based on tagCount>n, however this uses session storage by default and I can't find a way to configure persistent storage short of writing code to override the OOTB tagcloud store. Ideally, I'd like to write a persistent cookie and have my segment resolve based on the cookie value.
Any assistance would be appreciated.
Please have a look at this Adobe Helpx article :- https://helpx.adobe.com/experience-manager/using/personal.html
You can find good answers by expert on AEM at Adobe AEM forum:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.html
I hope this will help you.
Thanks and Regards
Kautuk Sahni

How to allow Joomla users to create / update own list and have menu link to that list?

I have a Joomla site I am developing that centers around designer handbags of a particular label
(not my site, it's a client's). It is not an ecommerce site, more of a social site.
What I am looking to do is present the user with a list of handbag styles and patterns so that
they can mark which items they have and which items they need.
Then two sections of content would be generated - one listing what they have and one listing what
they need.
I would also need to be able to include a direct menu link to that page.
Any ideas would be appreciated!
Probably the best way to do that would be to extend either community builder or JomSocial. Both have the ability to have custom user profiles which would go a long way to creating what you are looking for. You may even be able to do everything you want within the basic structure of one of those extensions.

Google web toolkits - multiple pages

On the google website there an example of a simple GWT appliatoin, following is a link:
http://code.google.com/webtoolkit/doc/1.6/tutorial/create.html
The above application has a host page:StockWatcher.html
and StockWatcher.java is the entry point.
If I wanted to add more html pages to this application, we keep one single host page and the entry point will add different panels depending on which link the user clicked on? In this case, how to know which link the user clicked on? If I create a navigation panel and each link has a request parameter, then after the user clicks on the link, How to get the request parameter?
Are there any tutorials available online on how to create a fully functional application? The one example google provides is too simple.
Thanks so much in advance
You have two options to have multiple page web application using gwt.
1) Use gwt history feature and listen for the history change. In this approach at the initial page load itself browser downloads all the javascripts(Including the widgets which are not useful in current link). Still this can be avoided by using gwt code splitting.
2) Create multiple modules. In this case you have to create multiple html pages and GWT entry points. For each major functionality create a gwt module and link that with [modulename].html file. In this approach browser downloads only particular feature's javascript. Not all the javascripts.
Based on your application requirement you can pick one of the option. IMHO I would suggesst second option.

joomla multiple site content distribution

I'm just starting to evaluate joomla CMS as a tool to build out my personal site. I'd like to manage multiple sites/domains with one copy of joomla on one host. so I'll own mysite.com and myothersite.com, which will both point to the same host/joomla code. If I do this I need to be able to set which domain/site the content I add shows up on. For some sites the content will be on both for others it will be on only one. What would be ideal it to have some kind of filtering mechanism so I don't have to manually set where the content goes.
What would be ideal is for me to set tags on the content and each site can specify which taged content to show.
My last requirement is that I be able to have different pages on each site.
Is this possible or am I asking too much from a "free" CMS?
Thanks all
I don't know if there's a component that achieves what you're describing here. I use a multi-language component in some of my sites that shows translations, but it doesn't "suppress" articles that doesn't have references to a translation: it just says "No translations to this article". I know you're not asking for translations methods, but I think the Joomfish way of selecting content based in a chosen language would be what you wanted, but not based in languages, just domains.
The only component I know it would be able to suppress articles based in pre defined parameters (in its case the language), is the Joomfish's "Table Localization Plugin", but you need to be a Joomfish silver member paying $60 to Joomfish's developers.
You could write a component(see here for plugin documentation), that analyzing the domain, would suppress articles that shouldn't appear in that specific domain. But I think it's going yo be a lot of work. You would learn a lot of Joomla's architecture, though.
How Joomla displays its content (output) is controlled entirely by parameters. So if you can control what parameters are loading, you can create multiple displays per host
However, that may be overkill in this case. You can just easily hack your template. Just make it load a different menu for siteA and siteB. (The host is set in $_SERVER['HTTP_HOST'])
The menu on siteA could have a tagging component item, set to display articles tagged siteA.com. The siteB will have the same for its domain.
While there are extensions that will do what you describe (http://extensions.joomla.org/extensions/core-enhancements/multiple-sites), Joomla is really designed for one site at a time. I've done setups where I use the same codebase for Joomla and manage it with version control, but I always end up launching multiple sites with individual databases.
However, I don't know of any CMS that inherently allows you to share articles across instances while keeping the data centralized. You may be looking at an extension (or your own customization) regardless of which platform you pick.
We had a similar problem with needing to share content across multiple Joomla! sites so we developed this extension: http://extensions.joomla.org/extension/simple-sharing
It is not very robust in terms of what it can share but it does let you share Articles across multiple sites and choose which sites and categories those articles get published into. I hope it works for you.
Thanks!