I am facing an issue with DNN7 link manager. I have a created a parent site like for example www.dnndemo.com.In home page i created a contact us button(Not included this in main navigation) in home page which will link to contact us page using link manager editor.So the path looks like www.dnndemo.com/contact-us. But if i a create a child site for the same URL i.e www.dnndemo.com/test now when i click on the contact us button which i already created will not redirect to my contact us page. This button still has parent URL link.
Is there any possibility that we can change the URL of the button dynamically based on the parent or child url.Hope i am clear on the issue.Help is much appreciated.Thanks.
Create the link as a relative link, rather than as an absolute one.
In your example, make the link "/contact-us" and DNN will take care of the rest.
If you go to Host, HTML Editor Manager you will find a setting to force the editor to generate relative links automatically, so that should help you in the future. (There are other useful options you might want to adjust there as well/(
Related
I am making my website, and I want to put my LinkedIn profile in the Bio section. However, when I use iframe, I get that LinkedIn refused to connect. Is there a way to embed my LinkedIn profile in my website using HTML? Thanks!
<iframe src="https://www.linkedin.com/in/your-name"></iframe> yields:
LinkedIn allows you to create a badge, and put that badge in your portfolio/website. So, in order to make a LinkedIn badge, follow these steps:
From your LinkedIn profile, click on Contact Info which is next to the number of your connections.
Then click on the pen at the top right corner to edit the Contact Info.
The first thing you'll notice is your LinkedIn profile link. Click on it.
A new page will be opened, you'll see a column at the right of the page, and at its end, you'll find a box entitled with Public Profile badge and a Create a badge button at the bottom. Click on that button.
Copy the script tag and paste it at the bottom of your HTML sheet.
Scroll down, you'll find 4 designs for your badge. Select the proper one and copy its code from the bottom of it and paste it where you want the badge to be shared.
I know it's a long journey, but it's worth it.
NOTE: The link to your LinkedIn profile will always open in the current tab, even if you add to the a tag the attributes target="_blank" rel="noopener noreferrer". If you want the link to be opened in a new tab, put this line of code inside the head tag at the beginning of your HTML sheet <base target="_blank" />.
Another IMPORTANT Note: After putting the base tag inside your head tag, every single a tag inside that sheet will be opened in a new tab by default.
HAPPY CODING AND GOOD LUCK
Browsers these days prevent this from occurring by expecting iframes to only frame pages from the same site. It's to prevent clickjacking. and it's controlled via the X-Frame-Options header. You should see a similar error on dev tools, if you press F12 you should see this error
*Clickjacking, also known as a “UI redress attack”, is when an attacker uses multiple transparent or opaque layers to trick a user into clicking on a button or link on another page when they were intending to click on the top level page.*
Your hosting provider may have a policy in place to prevent this from occuring, or if that's you, you will be able to amend this default value on your server.
You can disable this via Chrome for your development.
I have a 2sxc app that is a simple parent-and-child setup. So there's a listing of cards and each card has a details view. I use this app on 6 pages - each with their own unique content. I want to make a "back" link inside of the details view that goes back to that detail's parent.
So one of the pages is called "Motivate", and I want it so if a user goes to "Motivate" and then clicks on one of the details views, let's say "motivate/details/marketer", I want a back link on that details view that goes back to the "Motivate" page. But this link would have to work for each of the 6 categories dynamically. How would I create this in c# razor?
Can you post your code just so that I can see how its all done?
You can the current page id in 2sxc using "#Dnn.Tab.TabID"
If you can get the parent page ID you can use the following link to go to that page
"http://www.example.com/Default.aspx?tabid=TABID"
Regards
Kieran
I was overthinking this. Here's my code:
Go back
This works because when I'm on the details view (a different template), the landing page is still the Tab's Full URL.
Hello Stackoverflow community,
I am working with selenium IDE and I have the following problem:
I have to move a web content within a web content Management System from one folder to another. Therefore I have to click on a "Select" button to specify a target folder, then an iframe opens up where I can navigate through the "tree structure" of the folders.
The original page looks like this:
original page with "Select"-button
The structure of the web content management system is as follows:
Home
-Test(=Parent Folder):
-UniqueTitle
-UniqueTitle2
Because the folder that I want to adress(UniqueTitle2) lies one hierarchy below my current folder(I am in UniqueTitle), I have to click on the parent Folder "TEST" to go one hierarchy back. This is a link to the "TEST"-folder.
iframe where you can select the target folder
The problem is that on the original page below the iframe, the same Link to the "TEST"-folder exists as a breadcrumb. So if selenium clicks on the href link, it actually clicks the link on the original page, and not the one in the iframe.
I tried the following:
to select the iframe:
storeAttribute|css=iframe.dialog-iframe-node#id|iframeIDE
selectFrame|id=${iframeID}
to click on the link:
clickAndWait|link=TEST
clickAndWait|//a[contains(#href,'https://www.companyname.com/language/projectname/manage/maintenance/web-content-management[...]folderid=465576')]
Here is a HTML Snippet of the iframe:
TEST
How can I differentiate between these two, so my script will click within the iframe?
Thank you in advance and let me know if you need more information.
you have two options:
1. don't use iframe, use div or section instead
using this approach, you have to move the code for file selection to the main page. use AJAX to populate the file list to the div. this approach is often called single page application, though you don't need to move everything to a single page, just the file selection codes.
2. set allow-origin header of your iframe to your domain name or *
you should read about how to set this HTTP header.
here are some refs
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
Probably duplicate of How to switch between frames in Selenium WebDriver using Java
First thing when you want to do something inside iframe is switch to it.
WebDriver.SwitchTo().Frame(WebDriver.FindElement(By.Id("iframe")));
After that you can click on element.
When you want to back you can use:
WebDriver.SwitchTo().DefaultContent();
I feel like this should be very basic, I've been searching but can't seem to word it well enough for searches.
currently I have 2 html pages, my first index.html page has a navigation that links to itself throughout the entire site.
Home
Services
Portfolio
Contact
all of these section are on the main page (one page layout)
now I have recently added a secondary html page that is accessed via a button in the portfolio section to see a gallery of photos, easily enough I can get to that page via href="portfolio.html"
equally if i want to get back to my home page I can put in href="index.html"
here comes my troubles... What if I want to not only get to the home page, but I want to get to the Services section that is on the home page?
href="index.html/#services" throws error.
Thank you for your time.
Link should be: Services
anchor should be: <a id="services"> ... </a> (HTML5)
well...you're doing well to get into a specific place in the page you need you define id to your element and pass it with the URL. it'll be much easier to see the code itself and tell you what's wrong. try to check that the element has the right id or that you don't call different elements with the same id so the browser can't decide which element you'd like to go to
I've installed mediawiki 1.22.5 and I've tried to change the main page through the Mediawiki:Mainpage url to another page but It doesn't seem to work!
What I do is edit the http://www.mysite.com/en/index.php?title=MediaWiki:MainPage and write in the text window the name of the page I want as the main page (I've even copied/pasted it to make sure it is written correctly!). However when I click on the logo it takes me to the default main page, not the one I wrote in Mediawiki:Mainpage.
I can change the main page link in the side-bar but the problem with the logo remains.
And I don't want to create just a redirect as it is not elegant on the main page.
Any help is appreciated!
MediaWiki:MainPage should change also the target of the logo link. If it doesn't, my first guess would be extensive caching.
Is your wiki public? Can you provide us with an url?