Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Portal ListPortal List
Previous
 
Next
New Post
6/8/2008 7:00 AM
 

You can use this statement for your purpose

select '<a href=http://' + PortalAlias.httpalias + '>' + portals.PortalName + '</a>'  as portals  from PortalAlias, portals


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
6/8/2008 7:30 AM
 

Hi Yehuda,

My results shows me the Parent Portal, the child portal, the word child and then the portal name (3 items for each portal). Is there any way just to have the portal link.

Thanks for your help.

 
New Post
6/8/2008 2:54 PM
 

Sorry, I tried it on a one portal installation and did not notice the duplication. Here is the correct statement:

SELECT    '<a href=http://' + PortalAlias.httpalias + '>' + portals.PortalName + '</a>' as Portals
FROM         PortalAlias INNER JOIN
                      Portals ON PortalAlias.PortalID = Portals.PortalID

As for having 3 items for each portal, I am not sure why it happens to you.

Did you use the statement exactly as written here?

Could you post what you wrote?

Yehuda


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
6/8/2008 4:06 PM
 

Hi Yehuda,

Thanks for that it works a dream. I already know the answer to this but, is there anyway to filter the portals based on certain text using a WHERE statement with wildcards e.g. WHERE alias = '*text*'

Sorry I don't know SQL querys that good.

Thanks.

 
New Post
6/8/2008 6:29 PM
 

Sure, you can use:

SELECT    '<a href=http://' + PortalAlias.httpalias + '>' + portals.PortalName + '</a>' as Portals
FROM         PortalAlias INNER JOIN
                      Portals ON PortalAlias.PortalID = Portals.PortalID
where portals.PortalName like '%text%'

 

But if you'll read the module documentation you'll see that you have there a bunch of filters and other tools that you can easily use for various tasks.

Paul Scarlet's site is a good source (obviously) for more info about the module uses.

I see that now  he is charging a subscription fee (rightfully for this great module) for versions over 4.1 but the free module will do the job for you.

Yehuda


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Portal ListPortal List


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out