In AEM 6.1, campaigns always showing first teaser - aem

I have one created one campaign and underneath that I have created three teasers(each of them having different content, third teaser is default). I have linked first two teasers to two different segments and default is not assigned to any teaser. But every time my page is loading, I am seeing the first teaser(even though segments not resolving the client context). Any pointers would be highly appreciated.

If you are testing segments in same browser/window in which you have configured segments then you might see this problem. Open page in another browser or clear localStorage of your browser (to reset clientContext) and try again.

Related

wrong content is cached

We have a site which sometimes delivers a wrong content for a specific URL.
The page has a plugin and by default should show the records listing (or the first record listing as the listing is grouped by initial letter). After clicking a link some records are viewable in detail on the same page.
Every now and then a cache problem occurs:
Instead of the listing a detailed record is shown.
Although we use realurl, all problems occur also with the basic urls.
For overview I will only write the url-parameters, assume www.domain.tld/index.php? in front.
The page to call is id=61.
What I see is
cHash=3df3421afc42d3d5bfa1bc50603ea00d&id=61&tx_citkoegovservicelight_ansprechpartner%5Baction%5D=show&tx_citkoegovservicelight_ansprechpartner%5Bansprechpartner%5D=282.
In the HTML-source of the page I show the page calling parameters with the extension page_params. Here I see:
tx_citkoegovservicelight_ansprechpartner[action]=show&tx_citkoegovservicelight_ansprechpartner[ansprechpartner]=282&tx_citkoegovservicelight_ansprechpartner[letter]=kontakt&id=61
Two strange notes: there is no cHash parameter, there is an additional parameter tx_citkoegovservicelight_ansprechpartner[letter] which never should be used with detail view and never should have the value kontakt (only single characters were used for the listing of all records starting with that letter = no detail view)
Using these parameters does not show the detail-view but the the list view (for letter 'A').
I do not find a reason why this special URL should be called (no link) and I don't know why TYPO3 should cache a content which belongs to another URL.
And it is a problem with TYPO3 cache as all works correct if I clear the cache of this single page.
Please check my answer to another issue. The accepted answer is right in that case, but in your case it can really be caused by failed cHash calculation, because it is not related to RealURL.
Try to clear the cache and then right after that go to tx_citkoegovservicelight_ansprechpartner[action]=show&tx_citkoegovservicelight_ansprechpartner[ansprechpartner]=282&tx_citkoegovservicelight_ansprechpartner[letter]=kontakt&id=61.
And then simply open the page id=61. If you see the wrong cached result, then the reason is in a combination of following factors:
Plugin's action is cached
Cache fails are allowed in installation
cHash calculation failed
To prevent this you should enable pageNotFoundOnCHashError in Install Tool. Then the problematic link above will just trigger 404 and will not force TYPO3 to render the page.
To a question where the link is coming from. If the website is already live, it can be everything: from a crawler, which somehow builded the link itself to a user who tried to play with parameters.

Activating multiple versions of a page in AEM over time

In AEM (Adobe Experience Manager), I'm trying to schedule the activation of multiple versions of a single page that have slightly different content each day. So, while I'm out-of-office on Saturday morning, the "Saturday" version of the page is auto-activated. Then on Sunday morning, the "Sunday" version of the page is activated. On Monday morning, the "Monday" version of the page is activated, and so on. So far, I've only been able to successfully schedule a single change, not multiple changes over time, as described. Any help would be appreciated.
I don't know a way to directly do activation of different versions at different times, but an alternative you could consider would be to create the portion(s) of the the page you to change over time as a teaser component, then use segmentation to define time-based segments that would cause the page to render those portions differently depending on the date/time.
Check out this documentation: https://docs.adobe.com/docs/en/aem/6-1/administer/personalization/campaigns/segmentation.html. It states
"...segments are then used to provide a visitor with specifically
targeted content."
This wouldn't be a typical usage of segmentation, but it is a way to accomplish what you want to do. In step 6, when creating a new segment, you would need to define a JavaScript expression that evaluates the date/time to resolve the segment to true/false. You could define several such segments for each date/time you need, then depending on which segment resolves to true different content would be shown.
This has overview info https://docs.adobe.com/docs/en/aem/6-1/author/personalization/campaigns.html and says that
"Typically a teaser page is a temporary action that will last for a
specific period of time, until it is replaced by the next teaser
page."
At least from AEM 6.3 (I didn't check the earlier versions, but quite sure it works the same way) there is "Scheduled publication" function.
When you schedule the page for activation the snapshot version is created and that very version will be published, even if the page itself was changed since then. And this can be used for several times. So actually you have what you need works out-of-the-box.
I would suggest you to investigate /etc/workflow/models/scheduled_activation/jcr:content/
for more information.

Content merging AEM

We're looking for a solution on how to best deal with the situation where multiple authors are working on the same page. If the first author pushes in the content, the second should have a way to merge it when he tries to publish. Launches appears to be a way to take care of this but it doesn't seem to be handling content merging. Is there any way an author can view the diff(and or do merge) of the content that might have been pushed by another author while they were working concurrently ?
Please help with any pointers.
Page modifications happen in real time to the underlying structure. They also happen at as small a level as possible.i.e. If you go into a text area and modify the text there, the text node is changed on the server, you aren't saving the entire page.
The only way that person A could interfere with what person B is doing is if they were working on the exact same area of the page. Which, honestly is a process issue. I say this because the answer to your question is that there is nothing out of the box to handle this type of scenario and if you are on 6.0 or higher and looking at the JCR3. JCR3 handles this far worse than the older version did. Last time I checked it didn't support nodes at all
Adding to what Bailey said, AEM OOB allow multiple users to edit same page in real time, though if multiple users are working on same node will be a reason of conflict. Such cases can be managed by defining a process like:
1. Take a lock of page and edit page or
2. Create versions of page and publish versions

No rights on page-module level

I encounter a strange error. On page-module level i´m not allowed to create new page elements. If i do the same via the list-module page-elements are created and i can edit them (even in the page-module).
Also, if i created a flexible content element - e.g. columns - (via the list module) i CAN create new elements in the flexible content element, even in page module.
New elements are always on TOP of the page, meaning the first entry, and i can´t drag and drop them. Well, i can, but changes do not come in effect. To sort the elements I have to edit the page properties, and sort content.
The user has every right(!) given by the user settings, and it is TYPO3 4.7.4
Does anyone know where i have to look for a solution? Thanks in advance!
Edit 1
This error appears in the log:
Attempt to insert record on page '[root-level]' (0) where this table, tt_content, is not allowed (msg#1.1.11)
Again: Creating Elements IS working via the List-Module.
This error is causen because the field t3ver_swapmode in the page table was removed since TYPO3 4.7 (Maybe in combination with TemplaVoila).
I dont know whats exactly going on here (didnt had the time to find that out), but the solution is of cource simple. I uploaded my fix to the TYPO repository under the key swapmodefix http://typo3.org/extensions/repository/view/swapmodefix
The extension appears in a couple of hours, good luck!
You need to select a page inside the pagetree first. You may not create content elements on the root page.
It might be that the selection is lost, but still visibel. Just click the page again.

Is is possible to have a slide effect in RAP Eclipse?

I'm building a demo site about server management, I have a requirement as following:
- User can search servers when he input an IP certain range, the site will list all information of available servers respectively (Server name, IP , status, usage...).
I used a TableViewer to show the search result, and I also used pagination. I have 2 buttons Next ans Previous to move among pages.
The problem I'm facing is how to move automatically among pages with slide effect ( similar as we see photos of an album). When I click Next and Previous buttons, the effect must be the same.
I don't know if RAP can do it and how to do it?
I'd appreciate for any suggestion or answer. Thanks so much.
See the answer in the RAP Forum: http://www.eclipse.org/forums/index.php/t/357538/