Im doing an asp.net project with dynamic data.
I've used a hyperlink to navigate to a new page which I have created, which isnt iside te dynamic data folder. This works fine, but to keep everything tidy i've tried to do the same by adding an aspx page inside the custom pages, so where inside Bill folder I have details, edit,insert,list I now have 'UpdateBillPrices'
Although when I navigate to this I am getting the 'page cant be found error'
is this because its running inside the dynamic data folders?
the path is not wrong btw ta
If you want to build a custom List Page for a DB table and POCO named Foo, then you would add a Page named List.aspx to the folder DynamicData/CustomPages/Foo/ .
Related
I'm in the process of building a new website and I am making use of the Kentico new website wizard.
On step 5, you get to select a master page. Currently I see 2 default options.
How am I able to add my own custom master page that I created and saved in the CMSTemplates folder?
Any help would be great.
Thanks
After you created the template in CMSTemplates - I assume it is ASPX template, have you registered it in Kentico as master page template? If not, please see the documentation on creating ASPX templates.
It really does not matter. You can go with default blank master page or any other option and later on you can change it. After creating a site you will end with one root element in the tree and the master template assigned to it (the one you chose in the wizard). Now you can change your master template: go to page templates and create a new one, then go back to the root page and go to root page properties/template and assign the one you created.
This root master template is not some "read only? frozen forever" thing. You can change it to different one at any point at time.
P.S. If you want your template appear in the site wizard - just create it in advance, mark it as master template and it will appear.
There are two things required to do.
Put the newly created template in the "Templates" folder then run an insert statement in SQL to "register" the template so that it will show up when in Kentico when you want to create a new site from the internal web templates.
This is how I did it.
In order for the user to click to add a new website so that our new custom website template is displayed in the list of websites,we need to add this information to the CMS_WebTemplate database table so that Kentico can map or “register” the physical path to the custom website template.
The script is as follows:
INSERT INTO CMS_WebTemplate
SELECT 'New Site For Testing',
'~\App_Data\Templates\BlankNewSite',
'{$webtemplate.blanksite.description$}',
NEWID(),
GETDATE(),
'BlankNewSite',
10,--order of the website template so you need to look for the last digit and increment by 1
'F;B;N;X;V',
'a928c1d2-1bcd-459c-abcb-9f5a08978017', --default web thumbnail id for the blank site
The Blank New Site for testing provides a template for creating new websites from scratch, based on the portal engine.'
Now, the user will be able to create a new website using the new template that was placed in the C:\inetpub\wwwroot\Kentico10\CMS\App_Data\Templates directory which lives inside of the Kentico CMS web application
Steps:
1. Clone and rename existing website templates from C:\inetpub\wwwroot\Kentico10\CMS\App_Data\Templates
2. Run script in the database to map the website template and it’s physical path
3. Run wizard to create new website
I have a multilingual website in Drupal 7. I have a view to display content and this view is in code in one of my custom module. I am not getting translation when view is in code and works fine when it's in database. Let me try to explain:
I added content field and rewrite the output of this field, wrapped
with t() and excluded from display. I added another Global custom
field and used replacement pattern to display that content field. I
exported the view and saved it in code in one of custom module.
Now view is in code and everything is working fine as expected in default language
(English). When I switched the language, it only show English for
that content field and everything else showing translation.
I saved the view in Views UI without any change and now view is in
database. I refreshed the page and I got the translation.
Any idea or help would be appreciated. Thanks!
Try writing an update script that saves your view that's in code into the database with $view->save();
When you update the view, you will always need an update script that updates the view in the database:
$view->delete();
ctools_include('object-cache');
ctools_object_cache_clear('view', $view->name);
$view->save();
I had created a custom page(test) in concrete5 through UI.
Dashboard->Sitemp->Addpage
I created a form in this page.After form submit I want to store those details in DB.I just want to where this page is saved in app folder structure.So that I can connet Db and save records.
The page is not saved anywhere in the folder structure. It is saved in the database.
If you are using any of the forms add'ons however they will save the data in the db and you'll have access to it from the dashboard report section.
If you really want to be able to control it yourself then you will need to create a single page through code, add the form to it and write the code to process the page.
The single page would be in the single_pages folder and its controller in the controllers folder
Replace "my_profile" with your php file name following the instructions below:
Sign in to the concrete5 dashboard, and go to Themes & Page Types > Single Pages. Find the "Add a Single Page" form at the bottom of the list, and enter "my_profile" at the bottom (or whatever the name of your single page.) Do not include ".php" in the field.
Per the instructions on Concrete5:
http://www.concrete5.org/documentation/developers/pages/single-pages
I'm trying to create a portfolio website where students can log in, choose from a selection of templates and then edit the content.
The users page is already set up but contains no html or asp.net.
I want to have it so that when the user selects the template and clicks the button, the code from that template is then written into their page.
Any ideas how I could do this?
Creating physical pages is not a good idea.
What you rather can do is to have your "pages" in the database and expose them through a url facade built on url rewriting.
A simplest example would be - you have a table, PAGES with Name and Body. Pages can be accessed with ShowPage.aspx?page=PageName. However, a facade exposes them as Pages/PageName.aspx which is internally rewritten into the ShowPage.aspx?page=PageName.
It doesn't really matter if you code agains WebForms or MVC, the general idea remains the same.
I am using alfresco 4. I have created a new site called test and trying to show issues data list into it as a site page. I have successfully added tab/page alongside existing links like wiki, dataLists, documentlibrary etc. But I could not able to figure out the way to show the issues data list content on to page. I searched a lot on google but did not find any solution. Can some one help me with this ???
Thanks
To add the Data Lists page to your site, go to More, Customize Site. Then, drag Data Lists down to the "Current Site Pages" area next to Document Library. Then, click OK.
You should now see Data Lists in the site navigation. Click it. If this is your first data list, the New Data List dialog will automatically launch, otherwise, click New List. Select Issue List from the list, give it a title and description, then click Save.
Now you have a new Issue List you can begin to populate.
As you create additional lists they will show up in the list of lists on the left-hand side.
If what you want is a page dedicated only to issues, you'll have to use the underlying Surf framework to develop that yourself.
I have successfully added the page to site by following this document.