Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
How to integrate AEM DAM and Hybris.
In multimedia tab of products i need to browse to DAM system. Please suggest me.
Thanks in advance.
What you need are the following two keywords:
MediaURLStrategy
MediaStorageStrategy
The MediaUrlStrategy resolves a URL to a Media item. The MediaStorageStrategy handles media creation, change and deletion of media items within the hybris media server. Both are interfaces you need to implement.
Next you need a bean definition for your each of your implementations.
For the next step you need to know which folders you want to use the URL/Storage strategies for. Every media has a specific folder. You can assign a URL/Storage strategy for specific folders and you can assign a default strategy. You reference the strategy by its bean id.
This is how you declare the default strategy
media.default.storage.strategy=localFileMediaStorageStrategy
media.default.url.strategy=localMediaWebURLStrategy
This is how you declare a strategy for the folder abc:
media.folder.abc.storage.strategy=myStorageStrategy
media.folder.abc.url.strategy=myUrlStrategy
Its very important to know, that hybris uses medias for a lot of internal purposes, e.g. cronjob logs, sync logs, cockpit configuration. So using a publicly accessible store for ALL folders is not recommended.
Make that the following property has a value (e.g. cache):
media.default.local.cache.rootCacheFolder=cache
In older versions of hybris, when this property had no value, in regular intervals, local medias were deleted.
You need to create custom editor and fill it data in backend from DAM. Also you need to customize view of product type in backoffice.xml for your custom editor.
You need to write custom renderers for reference. Please check the pcmbackoffice-config.xml
In the product's list view and grid view, you would find some renderers. You need to override the preview renderer.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
When you go to https://learn.microsoft.com/en-gb/aspnet/core/getting-started/?view=aspnetcore-3.1&tabs=macos for example, or any other microsoft docs, and the end of the page there is github feedback - you can open an issue directly on the site or on guthub, as the docs are published on github.
I want to do something like this for my website, where people reading articles can suggest improvements. This is a good way to make a wiki like site. Is there a way to do it?
If you just want a URL for opening a blank issue, all you need is to provide a link to https://github.com/<user-name>/<repo-name>/issues/new.
If you want the issue to have prefilled text, you can use query parameters to generate the URL. This help page describes how this can be done.
The easy way would be to create an issue template on GitHub, and then use the template parameter. As quoted in the linked article:
You can use the template query parameter to specify a template to automatically fill the issue or pull request body. The template query parameter works with templates stored in an ISSUE_TEMPLATE or PULL_REQUEST_TEMPLATE subdirectory within the root, docs/ or .github/ directory in a repository.
If a repository contains only the default pull request or issue template, any new issues or pull requests will have the default template in the body.
You can also use the other parameters to customize the issue title, text, labels, etc. This project slightly simplifies this task.
Thank you for your answers, but I found this https://utteranc.es/ and its everything I wanted. And its easy to use. I will leave the other for the right answer, but if someone wants something more out of the box you can use my finding.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm using AEM,and meet a problem.
Firsly follow these steps
Secondly the page is below:
I create the page based on the Summit Toys Base Content Page template.
step1
but click next button ,the page shows like below:
step2
why and how to solve this issue.
Thanks advance!
This should be your problem. From your reference application, You have created a template under:
--apps
-- summit_toys
-- templates
and then the corresponding page rendering component under
--apps
-- summit_toys
--components
--structure
I am 90% sure, your page rendering component /apps/summit_toys/components/structure/contentpage is missing property sling:resourceSuperType = wcm/foundation/components/page. This brings the page properties dialog on the create page wizard. Check for spelling and case sensitive to exactly match above.
Other possibilities:
Make sure template sling:resourceType points to relative path of page rendering component (like summit_toys/components/structure/contentpage)
Check for typo, spelling errors. JCR standard prefers to keep all nodes in lower case (for good reason). Make sure your nodes are lower case; hyphenated if required.
Issue should get resolved with sling:resourceSuperType = wcm/foundation/components/page. If still fails, you might need to share /apps package to check further.
which version of aem you are using.
if it is 6.3, after creating your page, check if your page is there or not under content node in CRX
If it is there the check resource type is correctly mapped accordingly or not.
Hope this helps
I faced the same issue and is resolved
check this image
issue is related to value of cq:allowedTemplate for /content/wetrain/jcr:content
This issue can occur if you have not created dialog(cq:dialog) for your page component. Either you can create cq:dialog/ or extend out of the box page component using property sling:resourceSuperType as mentioned by Dhiraj Khursade.
If you are using editable templates, check for sling:resourceType property under /conf/<project>/settings/wcm/templates/<template-name>/structure/jcr:content and /conf/<project>/settings/wcm/templates/<template-name>/initial/jcr:content both should point to correct page component <project>/components/structure/<page-component>
Also make sure that, page component has correct value for sling:resourceSuperType with valid page component from core components or wcm core component. Try creating fresh new page and validate instead of trying on existing page.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a kentico10 website set up but the different languages are linked somehow. So if i make changes on the spanish version of the site the others change as well. Any ideas as too what this could be?
If you've hard coded your text/code in your template layout then you will need to use localization resource string to get the correct value OR update your template to be more dynamic by using different webparts and zones. I'd suggest NOT using different templates for every language, it becomes a management nightmare. Make your templates dynamic enough to allow for different content to be placed for different languages.
In your example it looks like the footer text is not in English and it should be. This is a perfect example. In that place on the template layout add a webpart layout and then on the design view, place a editable text webpart on it. Then when you change between languages, you can edit the text based on each individual language. The other alternative I mentioned was to use a localization resource string. These
You can set up it the way you want. Go to properties\template - and choose a different template for you language version. Read
Developing unique page templates for specific languages
This is because Kentico provides a mechanism for translations of documents on multilingual sites, but not for translating entire page templates.
You can use the same template for every language, by using localized resource strings for any text you enter in the templates. (under Localization > Resource strings).
Kentico 10 Localized resource strings
You can then use the resource string's key in a macro to show the resource string for the current language. Based on the above screenshot
{$ObjectType.CompanyXYZ_Doctor$} would render as "Doctor" if the current language is English, and "Docteur" if the current language is French.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am not going to pretend to know anything about creating forms in Access, it is an entirely new concept to me. I have a DB in access that contains a number of tables and queries. I would like to create an access form that I can use as a search form, to look up any particular fields i need. I would simply type in what I was looking for and a list of the tables/queries that relate to it would appear. Is this doable?
The short answer to your question "is this doable" is: yes this is absolutely doable.
A good place to start would be to use the Form Wizard. Then get some training (plenty online) on how to design forms. Dlookup will likely be your friend.
Alternatively, a Report is another way to show a specific record based on some specified criteria (show me address for person A).
Short answer: Yes.
Longer Answer: I dont know what your background is. If this is your first Database project then you have a lot of reading to do and I would go and get myself a good ACCESS book and read it or spend a lot of time on the Microsoft Technet. Thats about as specific as I can get from the question itself.
Perhaps a solution for you:
Step A: Create a form
There are many ways to create forms. You may try this one:
1) In the Access Objects Window (far left on your screen) mark the table or query you want your form be based on. That means: the form shall display all the fields that are in that specific table or query.
2) With your table or query marked, in the "Create" pane of the Ribbon, click the button "Form". This creates a rudimentary form with all the fields from your table or query arranged in a more or less sensible way. (If you do not like the way the fields are arranged, you can re-arrange them, resize them or remove some of them, etc.)
3) Close this form. On closing, you will be asked to enter a name for it so that you can identify it later.
Step B: Use the form for filtering
1) Open that form (now in "form" view, not "design" view, of course)
2) In Home section of the Ribbon, in the Sort&Filter Area, click on the tiny button "Advanced", and from the dropdown select "Filter by form". Having this done, you then can enter various criteria in the fields on your form. Some of them may display dropdowns to choose from existing content. In some fields you may want to enter stuff like
Like "*liv*"
which will search for content containing any of live, lively, oblivious, olive, etc.
3) To apply the filtering, in the Ribbon, Home Section, Sort&Filter Area, click "Toggle filter". This will make your form display only records that comply with your criteria.
4) To wipe out your filter criteria, use the button Advanced --> Clear all filters.
This was a very basic introduction into core functionality of Access. Generally, I would support the other contributors here in saying: go to your local library and take any of the various Access introductory books they have there, read it, and try out what you read. You will make quick progress. (You may as well read any tutorial in the internet, but I personally would recommend a book: you just will have the fun to stroll through the pages, perhaps sitting in your garden, and bump into interesting stuff you probably would not have expected. That will help your progress considerably.)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Can anybody help me that how can i set PRINT and save as PDF icon(functionality) in TYPO3 pages ?
Thanks...in advance..
There are many examples in Google and I think that you should browse them, to find the one the best fits your needs.
In general 'historically' print version was suggested to be build with new PAGE cObject which typeNum is set to 98 (of course that's only suggestion) in general going this clue, you should find many examples and other resources by searching in Google for typo3 typeNum 98.
When you'll create alternative PAGE object (and maybe also use modified template for it) you need also add on your webpage a link which be the same as the current URL but with additional param &type=98, when user will click it TYPO3 will open the alternative version of the page. So you can add to this a JS in header which will also start system's print dialog.
You can also search the extensions repository and find something for placing the print button if you are unfamiliar with TypoScript.
PDF rendering is similar from point of view of the frontend, however most probably you need to use some additional lib, so it will be best to search for ready to use solution from the repo.
In general PDF version could be tricky, therefore from my experience I can say that nowadays it's sometimes better to avoid the PDF icon at all or use linking to some external service. Of course all depends on your needs. Remember that there are many programs which are able to create PDF's so if it is not required maybe it's no worth of its effort.
Finally take a look at the AddThis widget it can be also used for easy adding of icons for printing and online PDF creation, additionally you can also send invitations via e-mail, or even share the link on the hundreds social portals. And what's most important installing this is just like adding view lines of HTML code vie TypoScript.