DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

using XML/XSL module

 5 Replies
 2 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 4
New Around Here

Hi all !
 

I'm playing with the XSL/XML module because I want to do this: when a search engine sends a user to a page that doesn't exist anymore or doesn't exist on my site, I want to retrieve the name of the page he got, ex. "https://www.jeretapeunemini.com/austin/mini-kesako"

I know how to reread the "sitemap.xml" file and display its content...

I want to retrieve the value "mini-kesako" and display the corresponding url obtained from the "sitemap.xml" file.
e.g. https://www.jeretapeunemi...tin/mini/mini-kesako

As much as I know how to retrieve the value with a FnL module (cf. FnL | 404), I don't know how to do it with the XML module.

Maybe by passing values in "XSL Parameters" but I can't get anything...

I've searched the internet extensively but I can't find anything.

If anyone can help me, that would be great.

I'm sorry, but I can't find anything,

David

note: you will have noticed that this text has been translated from French to English...it's much easier for me.

Translated with www.DeepL.com/Translator (free version)

New Around Here
Posts: 4
New Around Here
anyone?
Veteran Member
Posts: 546
Veteran Member
MVP
MVP
You're an MVP!

did you check the documentation (https://github.com/DNNCom...2_User_Manual.docx)?
(Yes, I know, it is very brief, but contains a short explanation of this feature as well). Be aware that you need a key/value pair for each URL parameter, yuo want to use. Just subfolder parts of the URL will not work.

New Around Here
Posts: 4
New Around Here

Thanks Sebastian!
I have to say that I completely missed this "documentation"... which doesn't really help on the use of "XSL parameters".

While searching, I came across this post: https://www.dnnsoftware.c...rl-parameters-failed

The author explains that it's because of a bad configuration of the parameters.

She says that "Name" should be the parameter in the XSL and "value" the parameter in the URL...

I understand that:
Name: "xmlParameter" should be "P"
Data Origin: Pass-Through QueryString
Value: "p" should be "1"

Right ?

Veteran Member
Posts: 546
Veteran Member
MVP
MVP
You're an MVP!
as far as I understand, the parameter name and value in XML settings are just for filtering to prevent the module running outside of context.
You need to retrieve your query string params yourself from context URL, see .e.g. https://stackoverflow.com...string-value-in-xslt and https://stackoverflow.com...lue-as-xsl-parameter
New Around Here
Posts: 4
New Around Here
Merci Sebastian, I will look into this

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved