Let's say I have web content, which is a modal dialog. Now I want to be able to reuse this content in several other web contents. What is the easiest way to achieve this without copy modal code to each web content? JavaScript is allowed.
Liferay, include one web content in another web content
244 views Asked by Aleksander Mielczarek At
1
There are 1 answers
Related Questions in DIALOG
- Do GTK file chooser dialogs come with localized strings for buttons and titles?
- Flutter Dialog with custom width and no default padding
- How to avoid keyboard flickering when opening AlertDialog with EditText while another EditText is already focused?
- How to render more than 1 dialogs on Jupyterlab?
- Create custom dialog box swiping on all 4 directions
- Getting issue in alert dialog box
- How to click OK button on a dialog
- is any method remove backdrop in dialog tag?
- How do I retrieve the values of a radio group from an HTML dialog?
- I'm not able to find what does e.preventDefault() do in trapFocus function
- Material Toggle Button SharedPreferences
- How to create a new Dialog after cursive.run() has been called?
- Why is my button(id="closeDialogBtn") not working?
- Animating Dialog components on top of each other in Jetpack Compose
- Elements inside of dialog element will not show up when outside of bounds of dialog
Related Questions in LIFERAY
- Liferay DXP Service builder @BeanReference field is null
- How to customize mention notifications in liferay 7.3.5
- Could not find method compileOnly() for arguments
- "error: cannot find symbol import com.liferay.portal.kernel.uuid.PortalUUID;" in Liferay 7.4
- java:41: error: cannot find symbol import com.liferay.portal.kernel.uuid.PortalUUID; in liefray DXP
- liferay, how to add a new permission to liferay using admin panel portal
- Why jmeter/blazemeter is not recording web actions which are in angular?
- liferay-amd-loader - Missing react dependency error in Liferay react application
- Liferay 7.4 | How to Check File Entry Permissions in a Servlet?
- Liferay 7.4 GA107: Unresolved requirement: Import-Package: com.ironsoftware.ironpdf_ [Sanitized]
- Liferay 7.4 theme development with bootstrap/clay css variables in browser
- Liferay 7 Taglib issue with new module in Dev Studio
- Liferay 7.4 GA27+: DLURLHelperUtil.getPreviewURL returning old legacy URL format for Document and Media images
- Freemarker if statements inside html elements
- Uncaught TypeError: A.LiferayItemSelectorDialog is not a constructor - Liferay Portal 7.4 GA 105
Related Questions in WEB-CONTENT
- Looping through same API call using power query in Power BI
- find url in web page content using powershell
- Flutter Expanded Widget returns "Null check operator used on a null value"
- ANDROID, How to implement Web content filtering
- JSP in Folder inside webcontent unable to access servlet
- Eclipse proposing me Webapp folder only, rather than webContent folder when creating an new project
- How is webContents.send detected by ipcRenderer.on which is inside preload.js?
- How to prompt the 'access web contact' popup window when opening excel file
- Cannot fetch content from url with AsyncTask in android?
- How to hide scrollbar in electron's BrowserView?
- How to make android app which is download specific part of web content programmatically?
- Electron JS event is firing multiple times
- web request from one device to another on same local network
- How to set 'number of copies' to print in electronjs?
- XCUITest/Appium load on the app on iOS during performance testing
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Web content is a modal dialog? I don't understand the usecase, thus it's hard to give proper sample code.
If you're aware of the ID of the other webcontent that you want to use, you can retrieve this content through the API, e.g. by writing structures/templates. Templates are able to access the API and render other articles. Some of the API is hidden from templates by default, but you can revert this - look for "restricted" in portal.properties
The WCM API is named after its formal name "Journal*", check the API, e.g.
JournalArticleService.