How to hide page title in GitLab Wiki? - gitlab

I'm writing a wiki in another language, but I make links in English.
For example, in main page of GitLab-Wiki I see "Home",and if I create new page, called "CARS", I'll see CARS on top of new page.
So, I want to hide title from the page, which I created, cause sometimes my link could be home/blabla1234/cadfd
And every the page home has title: Home,
page blabla1234 has title: blabla1234 etc.
I googled it, and couldn't find any answer on my question. Maybe someone help me with this issue.

Related

Jumping to a specific id section on a different page

I am creating a portfolio project using handlebars and nodeJS. On my home(index) page, I have two sections down the page called 'about me' and 'contact me'. My nav bar also contains two buttons labeled 'about me' and 'contact me'. Both my 'contact me' and 'about me' have id tags with corresponding names.
I understand that when on the home page already, I can simply use
About Me
and this will automatically scroll down the page for me.
However, my issue is when I am not on the home page, but say one of my project pages. They also have the same nav bar, so if I want to click on 'contact me', simply using
About Me
it will obviously not work because that page does not contain the section with that id.
So my question is, if I am on a project page and I click on the 'contact me'/'about me' button in the nav bar, how do I get back to the home page and then also have it scroll down to those sections?
From this link, https://www.sitepoint.com/community/t/how-do-i-link-jump-to-a-specific-section-on-a-different-page/5646 I was hoping to get answers. But since I am using handlebars instead of html, this option does not work for me.Or at least I do not think it does.
I have my hbs all stored in a folder called views. The index.hbs is in /public/views. However my project pages are store in /public/views/partials <-- just for reference.
Thanks in advance!

Kentico custom page url with URL "Path or Pattern" feature

Updated: As I put in the comment under Brenden's response. I think the issue is not related to multilingual site, but it's with using Properties/ URLs / Path or Pattern feature. After adding value to the field Path of Pattern, the whole navigation stops working properly.
I have a multilingual site (English, French). Currently the URLs are like below:
English: www.domain.com/en-us/contact-us
French: www.domain.com/fr-fr/contact-us
What I want for French is a custom (translated) url www.domain.com/fr-fr/contactez-nous
I followed this Kentico instruction - the bottom part of the page with using Path or Pattern by adding /contactez-nous in the box. Things seem ok, but upon clicking on the page with the new URL on the French site, the whole main navigation (done with Hierarchical Viewer) seems to stuck with that URL; clicking anywhere on the nav doesn't do anything.
Links outside the nav works fine. How to make the nav work again. Thanks for your help!
I think I got it. The GetDocumentURL() is using NodeAliasPath to determine the URL. However, if you have not specified the NodeAliasPath column in the Columns property of the hierarchical viewer, then the current page's NodeAliasPath is used - and thus all items have the same URL. Adding the NodeAliasPath to the Columns property should fix the issue, so the hierarchical viewer has access to the data of each individual item.
EDIT: it looks like that in some cases the DocumentURLPath column must be specified too.
Make sure you're testing this in another browser or even another browser in a private window. If you are testing in a new tab in the same window, the CMS caches the selected language in the Kentico UI and shows that in the browser window.
For instance, if you have selected "French" on the pages app in the bottom left under the content tree, then navigate to your site in a new tab, it will display French no matter how many times you change the language selector on your public site to a new language.
Secondly, check the URL aliases for the given pages in each language. Make sure you don't have an alias that is the same in each language. For instance /contact-us with French and /contact-us in English.

Kentico 9 blog main page, archive page, and tag page

I'm new to Kentico, and have spent hours trying to make the blog work but haven't had any luck. Hope someone could help. I created a new blog by [a] using Pages > New Page > Blog; [b] then applying the Blog page template to it; [c] after that I created 2 sample blog posts. The only thing that works is the individual blog post. Other things don't work:
1- the blog main page --> empty
2- the blog archive page (for July) --> empty
3- tag link --> error message "Page /Blogs/My-blog-1.aspx was not found." Although I know I can change the tag link url, not sure what should be in there.
4 - making "Blog" appears on my nav (that I used CSS List menu web part). For this one, as a workaround, I was thinking about adding a blank "Blog" page and had it redirected to the blog url.
I've read the documentation related to Blog, but couldn't make it to work. Thanks for help!
Some of the out of the box templates are setup in such a way to only work on some of the example site templates which is why you're getting these results.
In the rptAllPosts repeater, set the Path property to ./%, ensure the Page types property is set to cms.blogpost, make sure you have a value in the Transformation property as well.
Should be resolved when you finish #1
You will have to modify the Selected Transformation. If you're using the default transformation, about line 9, way at the end you will need to modify the last parameter from ~/Blogs/my-blog-1.aspx to ~/Blog. This should fix the blog tag link.
Your work-around is very common and I'd stick with it for now.

How to change orchard blog home page list view/summary view

I have Orchard 1.7 setup with blog recipe.
The home screen display a list of blog posts.
I want to override the way the content is displayed in summary view. I could do this for each parts. But my styling is such that I need to wrap title, body, and meta tags with a special div when ever the display type is summary.
The problem is:
After shape tracing I understood that the template used in the home page (summary) is same as the detailed one.
Content.cshtml
For detail view I want to use the default core-> Views/Content.cshtml but for summary I need to supply my own. How can I do this?
OR
How to write a driver/widget to the home page. I know how I can do this for parts/fields/modules but I don't have an idea on how to create a driver for Blog home page.
Whenever I add a widget to the homepage the default blog post list still get displayed.
Just create a file called Content.Summary.cshtml in your theme. This will target all summary views, so if you have more than just blog posts on your site you will probably want to have Content-BlogPost.Summary.cshtml.
I wrote a small blog post on Item templates in Orchard if you are interested... http://arkleseizure.net/what-the-hell-is-an-item-template

How do I change the title and link colors of a Google Custom Search Element?

The situation:
Take a look at this page and search "photo" on both:
http://dev.womenandlogistics.com/testsearchengine.html
The top search engine refreshes the page and displays results with orange link titles and blue links. The bottom search engine displays tabbed results with blue link titles and blue links.
I found an answer to this on the Google forums; however, I am inexperienced with AJAX so I have no idea what to do this answer. I've read through various Google documentations on custom search engines and web elements regarding this, but I still can't figure it out.
What I've tried so far...
Added a class in the section (class="gsc-result gsc-webResult") and added the corresponding CSS (#gsc-result gsc-webResult) on the page to see if that works, but it didn't.
Viewed the context XML file to see if I can make changes. This only affects the top search box.
What you can do to help
Provide an explanation of what I'm doing wrong
Provide an explanation of where I should be looking
Show me samples of code that illustrates the actual color changes and where it can be found
I really appreciate your help! Thanks!
Here's what I suggest
Go to this link https://www.google.com/cse/ and create account
Create your custom search box
Customize looks as your wish
Copy the code after customizing
Paste in your blog or website where you want the search box to appear
Source: http://www.latestgames2.com/
Try this: http://spryserif.com/testsearchengine.html

Resources