I've just localized my DNN website into 3 languages, and for the default language I've set up custom Page URLs for most of the pages in the Page Settings field. I've tried to set this up the same for the other languages, but the menu isn't using the page urls I've set up, instead using the default URL for the page.
What I'm after is site.com/de/page-name. What I'm getting is site.com/de/Parent-Page/Child-Page. The url site.com/de/page-name loads fine when I access it directly.
Is there another setting somewhere to force the menu to use what's in the Page URL field?
I'm using DNN 7.1.2 with DDRMenu.
Related
What is the preferred way to go for creating a multi-tenant application with angular 4 (or above) as frontend?
I want tenant-specific content to be served via an API (like the stylesheet or a tenant-specific header/navigation) and store it in a database.
Currently, I use aspnetzero but I am stuck with the custom stylesheet. The Css is available at an Url from the backend (aspnetzero) and I get this Url from my abp session. But how do I link this css file without getting FOUC (flash of unstyled content)? Currently, I just use the link tag and set href to an angular-component variable that stores the url to my css file (it is set in ngOnInit). But then i get FOUC.
Maybe my whole architecture is wrong in my attempt. I am definitely open to entirely different approaches!
In an ADT, there's a variable called viewUrl: It opens the asset inside of the AssetPublisher. Now what i want is, to open the Asset not just inside the AssetPublisher but in a new Page.. So the asset is the only thing on the page and not just between all the other webcontents.
Are there some parameters wich allow to do this?
PS: I'm using Liferay 7 and the ADT is written in Freemarker.
Thank you in advance.
You have to use the display in context setting in your asset publisher. In this case, it tried to find the best page to show the asset. I can’t explain the "best page" algorithm as it seems to differ from asset to assets. But it usually tried to show the asset where it is shown out of an asset publisher.
In the particular case of a web content, you can use the "display page" setting in the web content. For that you have to configure a page with an asset publisher that has selected the checkbox "Set as the Default Asset Publisher for This Page". Then in your web content you can set the chosen page as display page.
In your ADT you shouldn’t have anything more to do as the viewUrl should automatically direct to the new page. If you don’t want to manually set the display page on every web content creation, you can edit the structure default values to set the display page. In liferay 7 you can even set the default value for the basic web content.
you can have more detailed info on the liferay doc: https://dev.liferay.com/discover/portal/-/knowledge_base/7-0/publishing-assets#content-display-pages
I would like to convert my existing website to Joomla. However, I need finer control over URLs than I seem to be able to control with Joomla. Assuming that Joomla is installed in the base public_html directory of my user, I would like these pages to keep their URLs:
http://dotancohen.com/howto/rtl_right_to_left.html
http://dotancohen.com/eng/genealogy.php
http://dotancohen.com/heb/contact_info.html
I am aware that I could use a 301 redirect via .htaccess however I would prefer to actually configure the canonical URL of the page. Is this possible in Joomla or with an extension?
Unquestionably, the defacto standard extension is At http://extensions.joomla.org/extensions/site-management/sef/10134. It's highly configurable, well supported, and ver well rated.
In Joomla! 2.5 you can use the built-in Redirect component to catch old URLs and send them to the right content without fiddling with the .htaccess.
You can also create menu's and menu items that will match the old paths then all you need is to place the content of your .html files into suitable articles. Remember you can create a menu (and thus a path to the content) but not display the menu anywhere on the site.
The genealogy.php appears to be a separate application so you can approach that by doing two things, first have a /eng/ directory on your new website with the genealogy.php application in it that way it will have the same URL. Then if you want to create a menu item in a Joomla! menu then you can link to it using a menu item of type 'External Link' - you can read more about the menu types by clicking on the help button in the toolbar.
[EDIT]
For external pages if you want to wrap the external application in your template use a menu item type of Iframe Wrapper this will place them in the main component area of the template. With a good Joomla! 2.5 template you can use a template style specific (i.e. layout settings) for that page.
We are working on a website which is small but it use Flash Navigation, as we are using flash so we hard coded the links inside flash, we have given links as below
for home page
home/aboutus
home/services
and so on for rest of links, the first click work fine, and the url is http://mysite.com/home/aboutus but if we click on services link its making url as http://mysite.com/home/home/aboutus
adding extra home to it, and it also don't work for home page
thanks
Regards
You could pass the base url to the Flash movie as parameter so that it can construct proper links:
<param name="rootUrl" value="#Url.Content("~/")" />
One fun difference in browsers is that the flash player sees the location of the "base" differently. For example, in older versions of IE, relative paths were followed from the location of the page containing the swf, while in FF and other browsers, they were followed from the location of the actual swf. To your embed code, you'll want to add a base param to make all the browsers the same.
<param name="base" value=".">
You can then pass relative paths based on the location of the swf. Or, you can also adjust the value of the parameter as necessary.
I am using spring mvc for my app. So far everything is going all. However, when I get to a page that has a variable in the url (ie, /edit/{id}), the style doesn't work on that page. In addition when I submit the form on that custom path page and try to go to another page (from the controller using the ModelAndView), the style doesn't work on that destination page which is weird cause the style works fine on that when I access it from elsewhere.
I think the reason the style is not working on the destination page is because the url still stay at the custom path with the url passing variable (localhost:8080/app/edit/5).
Late answer, but I've just experienced this myself and am having a few issues. As far as style sheets or JS files (basically any static resource) not being found after using a path variable, I was able to fix that by prefixing all of my style sheet or JS file links with ${pageContext.request.contextPath}. This ensures that the server always searches for them from WebContent, rather than from the offending path variable. I am also now having the issue of not being able to send proper requests to the other pages, but as my controllers only return Strings for the view resolver rather than ModelAndView objects, I'm not sure your solution will fit for me.