Adding feature in layout.master of My skin

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/27/2012 5:15:28 AM
Gravatar
Total Posts 18

Adding feature in layout.master of My skin

Hello Joe

I am adding all pages and the features added in per page as requirement dynamically through config file.
For ex:
<?xml version="1.0" encoding="utf-8" ?>
<siteContent>
<pages>
<page
name="How This Works"
title=""
url="~/how-this-works.aspx"
menuImage=""
pageOrder="1"
requireSSL="false"
visibleToRoles="All Users;"
editRoles="Content Publishers;"
createChildPageRoles=""
pageMetaKeyWords=""
pageMetaDescription=""
>

<contentFeature
featureGuid= "FBBA148C-B3C3-428A-9842-410DE99F878E"
contentTitle="HowThisWorks"
contentInstaller="mojoPortal.Web.HtmlContentInstaller, mojoPortal.Web"
configInfo="~/Setup/applications/Mobilyzer/FeatureDefinitions/10000_HowThisWorks.Config"
location="center"
sortOrder="1"
cacheTimeInSeconds="0"
/>
<contentFeature
featureGuid="0C2DA943-578B-4B74-8511-7D1772E677DE"
contentTitle="HowThisWorks1"
contentInstaller="mojoPortal.Web.HtmlContentInstaller, mojoPortal.Web"
configInfo="~/Setup/applications/Mobilyzer/FeatureDefinitions/10000_HowThisWorks1.Config"
location="center"
sortOrder="2"
cacheTimeInSeconds="0"
/>

<contentFeature
featureGuid="4D9D2948-4F32-4757-977C-3D8DBCC43CFB"
contentTitle="SearchCauses"
contentInstaller="mojoPortal.Web.HtmlContentInstaller, mojoPortal.Web"
configInfo="~/Setup/applications/Mobilyzer/FeatureDefinitions/10000_SearchCauses.Config"
location="right"
sortOrder="3"
cacheTimeInSeconds="0"
/>

<contentFeature
featureGuid="A4409D3D-2D38-4A1D-9213-02FC30198403"
contentTitle="Sign Up"
contentInstaller="mojoPortal.Web.HtmlContentInstaller, mojoPortal.Web"
configInfo="~/Setup/applications/Mobilyzer/FeatureDefinitions/10000_SignUpHome.Config"
location="right"
sortOrder="4"
cacheTimeInSeconds="0"
/>

</page>
</pages>
</siteContent>
Pages are created but I have problem in skin after running the Setup.I have set my skin as Default.

I am using a skin for my site which i have putted inside Data folder.

The path is C:\Users\nivedita\Desktop\Project\My_Projects\My_Projects.Features.UI\Data\Sites\1\skins\My_Projects-Home
Inside My_Projects-Home skin in layout.master I am adding my login feature.For that feature to run we are putting [ModuleDefID] from [dbo].[mp_Modules].
The Code is
<div class="login-module">
<portal:ModuleWrapper ID="mdl33" runat="server" ConfigureModuleID="45" />
</div>
As when the setup runs for first time database and pages are created so how can i know which
feature have which [ModuleDefID] so that we can set in layout.master.

Is there any other way to put feature in layout.master of my skin?

 

Thanks

Nivedita

 

10/27/2012 7:20:47 AM
Gravatar
Total Posts 18439

Re: Adding feature in layout.master of My skin

No there isn't. Sorry.

10/27/2012 8:14:11 AM
Gravatar
Total Posts 18

Re: Adding feature in layout.master of My skin

Please Suggest me some idea to do this thing in other way.

10/27/2012 8:26:42 AM
Gravatar
Total Posts 18439

Re: Adding feature in layout.master of My skin

If I had a suggestion I would make one but I don't.

ModuleWrapper is kind of a work around and hack, use it if you must but avoid it if you can has always been my advice about it.

It requires knowing the module id and there is no way to know the module id ahead of time so you cannot already have it in layout.master at the time of site creation. 

 

10/27/2012 8:55:44 AM
Gravatar
Total Posts 18

Re: Adding feature in layout.master of My skin

Thanks for your suggestion.

You must sign in to post in the forums. This thread is closed to new posts.