Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Components for theme
#18
Right. I think that makes things a bit clearer. So let's see if I understand now:
  • The theme developer wants to have certain components defined when their themes are used. The admin wants to be able to modify these components through the same interface as global components.
  • The theme developer defines default values for these components in their theme's folder, which are then copied to the data directory and stored in a particular data structure with extra information (e.g. XML, JSON, etc).
  • The admin edits these components through the expected interface, and if they "delete" a component that is required for the theme, the default value for that component is copied back in (ensuring that all necessary theme-specific components are always defined).
  • The theme developer is able to specify which components are read-only and which can be edited by admins(?)
  • Both the admin/theme developer use one function for calling components/theme-specific components. The user is able to resolve naming conflicts through some kind of prefix, like get_theme_component('/component-name') or a flag like get_theme_component('component-name', $namespaced = false)

Is that right?
Reply


Messages In This Thread
Components for theme - by Oleg06 - 2016-03-07, 00:40:39
RE: Components for theme - by shawn_a - 2016-03-07, 03:33:37
RE: Components for theme - by shawn_a - 2016-03-07, 03:40:17
RE: Components for theme - by Oleg06 - 2016-03-07, 04:09:17
RE: Components for theme - by shawn_a - 2016-03-07, 05:40:15
RE: Components for theme - by Oleg06 - 2016-03-07, 06:41:16
RE: Components for theme - by datiswous - 2016-03-07, 23:50:27
RE: Components for theme - by shawn_a - 2016-03-08, 23:07:22
RE: Components for theme - by datiswous - 2016-03-09, 03:16:31
RE: Components for theme - by shawn_a - 2016-03-11, 13:03:01
RE: Components for theme - by lokothodida - 2016-03-26, 21:49:11
RE: Components for theme - by DimaYakovlev - 2016-03-26, 23:48:54
RE: Components for theme - by Oleg06 - 2016-03-26, 23:01:13
RE: Components for theme - by shawn_a - 2016-03-27, 01:52:12
RE: Components for theme - by lokothodida - 2016-03-27, 10:32:49
RE: Components for theme - by shawn_a - 2016-03-27, 10:57:48
RE: Components for theme - by shawn_a - 2016-03-27, 11:04:02
RE: Components for theme - by lokothodida - 2016-03-27, 19:48:07
RE: Components for theme - by shawn_a - 2016-03-28, 00:04:23



Users browsing this thread: 1 Guest(s)