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...Custom SProcs and DNNCustom SProcs and DNN
Previous
 
Next
New Post
12/18/2006 2:06 PM
 

I would think that what you are trying to do is possible.  I would guess that there are many ways to accomplish what you want.  If I was doing it I would use our ActiveHTML module.  You could place one in each portal and set its settings to pull the links definitions from the database.  Depending on if I already had the list of links in a sql database or not I would just define a sql query to get them.  If I needed a user interface to add, edit and delete links you could use the DNN list feature.  This way you would just do a select * from lists where listname = 'Your List name' and then use the value as the URL and the text column as the display text

Of course as Abraham Maslow said "to the man who only has a hammer, everything he encounters begins to look like a nail"  Our modules are my hammer.

mj


Michael Jackson
Brillnat.com
Custom module development
Database access tokenized HTML modules
 
New Post
12/18/2006 2:24 PM
 

This is the detail of my modification to allow links to be syndicated to many portals

- The 'subscriber sites' must have a links module (definition=111) with moduleTitle = 'Syndicate Links'

 -The SPROC will populate the links module from the lists table

- Create the sproc 'UspSyndicateLinks' , add the following to it:

-- remove all syndicate links

 delete from Links where moduleID IN

     (select moduleID from modules where moduleTitle = 'Syndicate Links'AND moduledefID = 111)

-- Insert links from your user defined list

Insert into Links  

select moduleID, getdate(), LI.Text as Title, LI.Value AS URL, -1 as viewOrder,

'SyndicateLink' as Description, 1 as createdByUser from modules MO, lists LI where moduleTitle = 'Syndicate Links'and moduledefID = 111and LI.listName = 'SyndicateLinks'

 Anyone feel free to use/modify this if you need a similar solution.

Now just need to figure out

- how to get this to run on a schedlue or trigger

- how to get the link to open in target = blank (new window) - no field in links table

 

 
New Post
12/18/2006 2:30 PM
 

Chris (or anyone),

Any idea where I could find a sample of the code needed to run my sproc in the scheduler - or how to run my spoc on certain events (such as portal creation, List update, ...)

Thanks to all contributors,

 
New Post
12/18/2006 2:45 PM
 
Since you are not modifying the core tables then I think you should be fine.

Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
New Post
12/18/2006 2:46 PM
 

since you're a sql guy then why not place your sproc in a trigger on the lists table.

mj


Michael Jackson
Brillnat.com
Custom module development
Database access tokenized HTML modules
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Custom SProcs and DNNCustom SProcs and DNN


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