I created a content type from admin panel and made a view and block of that content. Added Block to the content region. Where can i find the file in which these code are made??
Related
I have a large website with several consistent text, like the nav, contact, footer, etc. I was wondering how I could keep all of these consistent on my static website (hosted on github pages) by loading the code from another file or any other method, since currently I have to manually update everything and it takes a while.
Github pages uses Jekyll as the underlying static site generator. You can break down your site into multiple smaller html pages that can be included into a main layout.
https://jekyllrb.com/docs/includes/
The include tag allows you to include the content from another file
stored in the _includes folder:
{% include footer.html %}
Jekyll will look for the referenced file (in this case, footer.html)
in the _includes directory at the root of your source directory and
insert its contents.
Read the documentation on this and you can easily find repeated text/html and replace them with includes.
If you're not already, this site has instructions so you can run jekyll locally to verify changes before pushing the changes to Github.
I am creating a django based website in which user can create folders and store some text (specifically urls and their 1 line description) in a hierarchical folder way .The site will contain a login option after that user can create folders and inside them subfolders and inside the sub folders, the user can store url and their description.
I need help in set up of database so that whenever a user logins and click on a particular folder he/she can view his/her folders and their content and create new sub folders and delete them. I am trying to use postgresql, i am all okay with the front end but the main thing in which i need help is how to create database for each folders and how to load them in my website.
PS: I am trying to keep a constraint that if a user has created folder 'A' he/she can store text but if a sub folder 'B' is created the user cannot store links in 'A'(parent folder) the links needs to be stored in the sub folders and notify to move the previously stored links to a sub folder. Same goes for the sub folders. Example now 'B' can have sub folders 'C' and 'D'.
I have tried my best to be explicit about my problem. Thanks in advance.
As I am new to dotCMS, just wondering is it support any script through which I can upload/publish my multiple contents(i.e well structured directory) as whole. For example I have multiple text files with contents to publish how can i do this in one shot ?
I know it support dynamic content page, but seems that works on already created content/page.
There are two ways:
You can either put all the content in an Excel file and use the "import content" option of the "Add new Content" button in the dotCMS admin "Content" tab. To know what the Excel structure should be, first download a piece of the content you plan to upload by clicking on the "Export button in the same page".
The second way is to use the Restfull content API. Check the documentation on how to use it.
I am not a coder, by any means, but I am confident in my ability to make HTML, CSS, and some PHP alterations to existing websites. I want to create a new page template for a client's BigCommerce storefront so the layout is specific to a content type; so far my attempts of uploading this template have not been successful and I am wondering if I am missing something.
Details:
I have not created a local installation of Stencil. I hope to just create the template and make changes via the online Theme Editor.
I have downloaded the theme from BigCommerce; my new page has been created from the default page.html file and then placed in the following path: templates/pages/custom/page/custom_page.html.
I have deleted the manifest.json file.
I compress the entire theme folder (zip) and try uploading it via My Themes.
I went into the config.json file and changed the theme name from the original.
I get the following error when trying to upload the theme: "There was a problem processing your theme".
So - what am I doing wrong? I assume it is a lot of things. Thank you for your help!
I have 2 websites each website contains settings item that contains logo and path for navigation folder for each website and navigation folder lives in global folder for each website :
Website1
Settings (Field map to navigation folder for current website1)
Global
Navigation Folder
Website2
Settings (Field map to navigation folder for current website2)
Global
Navigation Folder
Question 1 : when i open page editor and update any navigation link title and click publish from page editor (subitem and related items options are checked) nothing published on the front end website, so i have to go to the current settings item from content editor and publish it. I am sure this happens because there is no relation between current page and the the settings item. is there any way that i can make setting item published on page editor level ?
Question 2 : I want to make data source path field more dynamic, i have two websites, both with the same structure tree but different contents, lets say i'm reading navigation folder from datasource not settings item, so if i want to add new item under navigation folder from page editor it should display to me the navigation folder for current website, so the author can easily add navigation item under navigation folder for current website. how can i achieve this ?
Answer 1.
I think you'll need to select "Edit Related Item" and then publish that. Personally, I prefer things that don't change per-page to be edited from the content editor because it's more of a configuration thing. But that's just personal preference.
Answer 2.
I've used a martketplace module called "Sublayout Queryable Datasource".
It allows you to uses queries in your datasource locations, which means it can be relative to the current item. In your case it might look something like this:
query:ancestor-or-self::*[##templatename = 'Site Root']/Navigation Folder