Comment to 'Space Cards suggestion/feature request'
  • This request would have to be accomplished as an enhancement of Spaces/Groups instead of as a separate module.

    • It might be a little more straightforward it modules were self contained, but they're not.  Just tracking down the involved template files shows how intertwined everything is.  The Spaces template file that presents the info, involves a mile  long chain of template file imports that ends with /modules/base/profile/template/unit_with_cover.html  and the key  __meta__  is replace with the data that is displayed.

      What if, the aforementioned unit_with_cover.html file were move to the Spaces template folder, and break the chain of imports... then a separate module replace that __meta__ key with __modzzz_meta__  that puts more info on the card?  Is that viable?  If possible, only a single Spaces template file would need to be changd, and a separate module could have its own admin section to select which data the __modzzz_meta__  key is replaced with.

      Instead of /modules/boonex/spaces/template/unit.html containin this code:

      <bx_include_base:../modules/base/groups/template/unit.html />

      It would be replaced with this:

      <div class="__class__ bx-def-padding-sec bx-def-box-sizing">
      <div class="bx-base-pofile-unit-cnt bx-def-box bx-def-border bx-def-round-corners bx-def-color-bg-box">
      <a class="bx-base-pofile-unit-cover bx-def-align-center" style="background-image:url(__cover_url__);" href="__content_url__" onclick="__content_click__">
      <bx_if:show_thumbnail>
      <div class="bx-def-unit-img bx-def-__size__-size">
      <bx_if:show_thumb_image>
      <img class="bx-base-pofile-unit-thumb bx-def-__size__ bx-def-__size__-size bx-def-border bx-def-box-sizing" src="__thumb_url__" />
      </bx_if:show_thumb_image>
      <bx_if:show_thumb_letter>
      <p class="bx-base-pofile-unit-thumb bx-def-__size__ bx-def-__size__-size bx-def-border bx-def-box-sizing" style="background-color:rgba(__color__)">__letter__</p>
      </bx_if:show_thumb_letter>
      <bx_if:show_online>
      <div class="bx-base-pofile-unit-online"></div>
      </bx_if:show_online>
      </div>
      </bx_if:show_thumbnail>
      </a>
      <div class="bx-base-pofile-unit-title bx-def-box-sizing bx-def-padding-sec">
      <a href="__content_url__" onclick="__content_click__" >__title__</a>
      __badges__
      </div>
      <span class="bx-def-font-small bx-def-font-grayed">__addon__</span>
      <div class="bx-base-pofile-unit-info">
      <bx_if:meta><div class="bx-base-general-unit-meta bx-def-box-sizing bx-def-padding-sec-rightbottomleft">__modzzz_meta__</div></bx_if:meta>
      </div>
      </div>
      </div>