Comments (3)
If I'm understanding what you mean correctly, than yes it is technically possible to mix groups and standalone items, however there are some downsides.
Example
Thanks a lot for the inspiration @MD023 ! Since I have a horizontal layout, your solution fits perfectly!
I may work a bit with the CSS to squeeze some spacing but otherwise it is perfect. Thanks!
from homer.
Hi again @wsw70!
If I'm understanding what you mean correctly, than yes it is technically possible to mix groups and standalone items, however there are some downsides.
Example
config.yml
services:
- name: "Applications"
icon: "fas fa-cloud"
items:
- name: "Awesome app"
logo: "assets/tools/sample.png"
subtitle: "Bookmark example"
tag: "app"
keywords: "self hosted reddit"
url: "https://www.reddit.com/r/selfhosted/"
target: "_blank" # optional html a tag target attribute
type: "SecondaryLink"
SecondaryLinkUrl: "https://google.ca"
SecondaryLinkTarget: "_blank"
SecondaryLinkIcon: "fa-solid fa-circle-info fa-xl"
- name: "Another one"
logo: "assets/tools/sample2.png"
subtitle: "Another application"
tag: "app"
url: "#"
- name: " "
items:
- name: "Awesome app"
logo: "assets/tools/sample.png"
subtitle: "Bookmark example"
tag: "app"
keywords: "self hosted reddit"
url: "https://www.reddit.com/r/selfhosted/"
target: "_blank" # optional html a tag target attribute
type: "SecondaryLink"
SecondaryLinkUrl: "https://google.ca"
SecondaryLinkTarget: "_blank"
SecondaryLinkIcon: "fa-solid fa-circle-info fa-xl"
- name: "Another one"
logo: "assets/tools/sample2.png"
subtitle: "Another application"
tag: "app"
url: "#"
- name: "Applications"
icon: "fas fa-cloud"
items:
- name: "Awesome app"
logo: "assets/tools/sample.png"
subtitle: "Bookmark example"
tag: "app"
keywords: "self hosted reddit"
url: "https://www.reddit.com/r/selfhosted/"
target: "_blank" # optional html a tag target attribute
type: "SecondaryLink"
SecondaryLinkUrl: "https://google.ca"
SecondaryLinkTarget: "_blank"
SecondaryLinkIcon: "fa-solid fa-circle-info fa-xl"
- name: "Another one"
logo: "assets/tools/sample2.png"
subtitle: "Another application"
tag: "app"
url: "#"
As you can see you can mix the use of both groups and standalone items, but due to the missing header and logo, the spacing is off. To counter this slightly, and to still allow for both column and list views, you can add - name: " "
(just a space between the quotation marks) to the standalone "group".
This allows Homer to recognize the list of items as a group but without the header and logo. This maintains the ability to use the list and column view, but only marginally lowers the positioning so it does still appear differently than a group with a header and logo.
You may have to mess around with the ordering of the items to cater it to whatever your needs are, but this is what I was able to test. If I come across a better solution I will be sure to let you know!
from homer.
@wsw70 Glad to see it worked :)
from homer.
Related Issues (20)
- Custom service for Glances integration
- Subject: Feature Request: Authentication Integration with Casdoor for Single Sign-On (SSO)
- New Service Config Tool
- docker image does not recognise timezone appropriately HOT 1
- Incorrect example for background-image in example config.yml file HOT 1
- Clarify docs for config.stylesheet. There's strange behavior when given a string HOT 2
- How to fix ping CORS issue with Docker? HOT 2
- IIS Configuration HOT 1
- Define a name on the link to return to the home page when the logo is disabled
- qbittorrent custom service fetch fails with 403 unless logged in
- HTTP API Mapping for Links/Cards
- Wrong result of annotatePeaks.pl HOT 1
- Support for Environment variables in config file
- 1rst result no longer open when searching HOT 3
- Unable to set color of tag with Bluma class HOT 3
- Fuzzy search filter
- In columns mode, if a item has no subtitle the lowercase letters of ygjqp gets cut off
- bug: homepage style light mode error HOT 1
- [configuration question] How to remove the grouping entry? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homer.