Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterThe  The 'Friendly Url Settings' page is not showing
Previous
 
Next
New Post
12/22/2009 3:14 PM
 

I have a client who just purchased this module (v1.15.01) for which it is doing the same thing. Can you email me the SQL Scripts to add the "Friendly URL Settings" link back in or an updated install package (for DNN v05.00.01). Thanks

 
New Post
12/23/2009 12:51 AM
 

This is the Sql script I use.  This deletes and recreates the Url Master pages.  Please backup your database before running the script.  The script is setup to run through the host->sql menu.  If you'd like to run it directly in a query manager, you'll need to find/replace the {objectQualifier} and {databaseOwner} values.

Note that there are some commented out statements regarding the DNN 360 Menu - if you have this module on your install you'll need to uncomment these to run it.  The DNN 360 Menu creates some triggers in the database which are incompatible with any statements that affect more than one record at a time.  This is one possible reason for the failure of Url Master pages.

Script:
/*disable trigger DNN360Menu_delete on {objectQualifier}Tabs
go
disable trigger DNN360Menu_insert on {objectQualifier}Tabs
go
disable trigger DNN360Menu_update on {objectQualifier}Tabs
go*/

begin transaction
declare @moduleDefId int, @moduleControlId int, @portalId int

/* remove any records for deleted portals */
delete from {databaseOwner}ifty_TabModuleCreation
where not exists (select * from {databaseOwner}{objectQualifier}Portals p where p.portalId = {databaseOwner}ifty_TabModuleCreation.PortalId)
  and PortalId is not null

/* delete existing pages */
delete from {databaseOwner}{objectQualifier}Tabs where tabName in ('Page Urls', 'Friendly Url Settings')

/* delete any existing modules */
delete from {databaseOwner}{objectQualifier}Modules where ModuleTitle in ('Page Urls', 'Friendly Url Settings')

/*update tabmodulecreation table to 'not complete'*/
update {databaseOwner}ifty_TabModuleCreation
set completed = 0

/* update with correct module definitions */
update {databaseOwner}ifty_TabMOduleCreation
set MOduleDefId = (select moduleDefId from {databaseOwner}{objectQualifier}ModuleDefinitions where FriendlyName = 'Url Options')
where tabName = 'Friendly Url Settings'

update {databaseOwner}ifty_TabModuleCreation
set ModuleDefId = (select moduleDefId from {databaseOwner}{objectQualifier}ModuleDefinitions where FriendlyName = 'Page List')
where tabName = 'Page Urls'

declare recreate_Curs cursor for
 select tmc.ModuleDefId, ModuleControlId, PortalId
 From {databaseOwner}[ifty_TabModuleCreation]  tmc
 inner join {databaseOwner}{objectQualifier}ModuleControls mc
    on mc.ModuleDefID = tmc.ModuleDefId
 where completed = 0

open recreate_Curs
fetch from recreate_Curs
into @moduleDefId
  ,  @moduleControlId
  ,  @portalId
while @@fetch_Status = 0
BEGIN

 --select @portalId, @moduleDefId, @moduleControlId
 exec {databaseOwner}ifty_AddTabAndTabModule @moduleDefId, @moduleControlId

fetch from recreate_Curs
into @moduleDefId
  ,  @moduleControlId
  ,  @portalId

END
close recreate_Curs
deallocate recreate_Curs

select dm.FriendlyName, md.FriendlyName, mc.ControlKey, mc.ControlTitle, mc.ControlSrc,m.ModuleId, m.ModuleTitle,t.TabId, t.TabName
from {databaseOwner}{objectQualifier}DesktopModules dm
inner join {databaseOwner}{objectQualifier}ModuleDefinitions md
  on md.DesktopModuleId = dm.DesktopModuleId
inner join {databaseOwner}{objectQualifier}ModuleControls mc
 on mc.ModuleDefId = md.ModuleDefId
inner join {databaseOwner}{objectQualifier}Modules m
 on m.ModuleDefId = md.MOduleDefId
inner join {databaseOwner}{objectQualifier}TabModules tm
 on tm.MOduleId = m.ModuleId
inner join {databaseOwner}{objectQualifier}Tabs t
 on t.TabId = tm.TabId
where dm.FriendlyName = 'iFinity Url Master'
order by 1,2,3
rollback transaction


/*go
enable trigger DNN360Menu_delete on {objectQualifier}Tabs
go
enable trigger DNN360Menu_insert on {objectQualifier}Tabs
go
enable trigger DNN360Menu_update on {objectQualifier}Tabs
go*/

 
New Post
12/23/2009 3:49 PM
 

Thanks. I ran the scripts no problems (no DNN360). However, it didn't resolve the display issue. I dug into the database to look at the tabs table and found a record for the "Friendly URL Settings" , I had to update the "parentid" (7), and "tabpath" (\\host\\FriendlyUrlSettings) to match similar host records. I then restarted the application and presto it appears.

 

 
New Post
12/24/2009 1:29 AM
 

OK - the 'wrong parent' was probably the cause in the first place (that sql replicates the install sql).  There must be a bug in the logic somewhere if you have pages set up in a certain way.  Thanks for letting me know.

 
New Post
4/7/2010 2:37 PM
 

I had the problem where the "Page Urls" would only show on one portal with the previous version. I did the upgrade and it still did not fix it, so i uninstalled and reinstalled and it did fix it (it seemed).

Now i come back a few weeks later and find they are gone again. :(

I ran your script and it did not help (cleared cache and restarted the app).

What is the story with this module not appearing. Why is it not available to just add to a page also like the Friendly Urls module?

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterThe  The 'Friendly Url Settings' page is not showing


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).