# Formatting Links in Category overview site

**URL:** <https://community.bluespice.com/t/formatting-links-in-category-overview-site/109>\
**Category:** Discussion/Misc\
**Created:** [March 7, 2024, 1:45pm UTC](https://community.bluespice.com/t/formatting-links-in-category-overview-site/109 "2024-03-07T13:45:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanA](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@StefanA](https://community.bluespice.com/u/StefanA)\
**Post date:** [March 7, 2024, 1:45pm UTC](https://community.bluespice.com/t/formatting-links-in-category-overview-site/109/1 "2024-03-07T13:45:05Z")

</div>

Hi all,

on a category site there are all links to articles that are tagged with this category. So far it’s all fine. But the articles are always shown with the namespace as prefix.  
How can I format the links to pages to show up without the namespace?

Thank you very much  
Cheers  
Stefan

---

<div class="post-metadata">

**Author:** ![mlink-rodrigue](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mlink-rodrigue](https://community.bluespice.com/u/mlink-rodrigue)\
**Post date:** [March 8, 2024, 9:39am UTC](https://community.bluespice.com/t/formatting-links-in-category-overview-site/109/2 "2024-03-08T09:39:08Z")

</div>

Hi StefanA,

are you using BlueSpice free or pro? Also, do you want to do this on a code-level or within the wiki? I can show some workarounds in the wiki, but the answer would be different for free and pro.

Greetings  
Margit

---

<div class="post-metadata">

**Author:** ![StefanA](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@StefanA](https://community.bluespice.com/u/StefanA)\
**Post date:** [March 8, 2024, 10:22am UTC](https://community.bluespice.com/t/formatting-links-in-category-overview-site/109/3 "2024-03-08T10:22:08Z")

</div>

Hi Margit,

we are using pro version.  
But can you please explain it also for free version? This will make it easier to test in first stage.  
I can do it on code-level but also it would be fine if this can be done (configuration?) in GUI.

Thanks.  
Have a nice weekend.

Cheers,  
Stefan

---

<div class="post-metadata">

**Author:** ![StefanA](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@StefanA](https://community.bluespice.com/u/StefanA)\
**Post date:** [March 28, 2024, 7:42am UTC](https://community.bluespice.com/t/formatting-links-in-category-overview-site/109/4 "2024-03-28T07:42:19Z")

</div>

Hi @mlink-rodrigue, can you please provide the above mentioned workarounds?

Thank you.  
Bye,  
Stefan

---

<div class="post-metadata">

**Author:** ![mlink-rodrigue](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mlink-rodrigue](https://community.bluespice.com/u/mlink-rodrigue)\
**Post date:** [April 3, 2024, 11:23am UTC](https://community.bluespice.com/t/formatting-links-in-category-overview-site/109/5 "2024-04-03T11:23:32Z")

</div>

You could hide the default output of the pages in MediaWiki:Common.css:

```auto
.mw-category-generated #mw-pages {display:none}

```

Then add your own output via Extension:HeaderFooter. To do so, create page  
MediaWiki:Hf-nsheader-Kategorie and query the pages in that category.  
In BS Pro using Semantic MediaWiki, add:  
to MediaWiki:Hf-nsheader-Kategorie

```auto
{{#ask: [[Category:{{PAGENAME}}]] [[Modification date::+]]
|format=category
|limit=9999
}}

```

In BS Free (via Extension:DPL3):

```auto
<div class="dplcategory">
{{#dpl:
  |category={{PAGENAME}}
  |includesubpages=true
  |shownamespace=false
  |mode=category
  |ordermethod=titlewithoutnamespace
}}
</div>

```

For the DPL3 output, you might have to adjust the css as well to get a nice column layout (in common.css):

```auto
/*dpl column layout - avoid header orphans */
.dplcategory {-webkit-column-count:3;column-count:3;}
.dplcategory .mw-category .mw-category-group {display:block}
.dplcategory .mw-category-group {margin:0 2em 2em 2em;}
.dplcategory .mw-category-group h3 {break-after:avoid}
.dplcategory .mw-category-group h3 {margin:0 0 0.3em; border-bottom:1px solid #e2e2e2}

```

Hope this helps.  
Margit
