How to create a custom component which uses the values in Admin -> Display -> Front Page
I would like to create a custom component which uses the values in Admin -> Display -> Front Page, to set the number of discussions in the top discussions, the number of posts in the recent posts module, etc. Is there a way of linking these values to my custom component?
Hi,
here's the list of the variables listed in the Display - Front page:
Top Discussions:
Number of discussions
layout.module_num_top_boards
Recent Posts Module:
Number of posts
layout.recent-messages-module-list-size
Recent Topics Module:
Number of topics
layout.recent-threads-module-list-size
Unread Threads Module:
Number of Topics
layout.unread-threads-module-list-size
Show the latest topics
layout.module_show_latest_for_top
Show the latest posts
layout.module_show_latest_post_for_top
Users Online Module:
Number of logins
layout.users-online-module-logins-list-size
Users Online Module:
Number of registrations
layout.users-online-module-registrations-list-size
Number of friends to display
layout.module_num_friends
Separator character in navigation bar
layout.separator_character
Separator character in the user navigation bar
layout.user_nav_separator_character
Number of bookmarks to display
layout.module_num_bookmarks
Number of secondary links per page in the tree browser
layout.tree_node_browser_page_size
Always display colors for ranks
layout.always_use_rank_colors
You can access the value of a settings variable inside a custom component using Freemarker, more details here.