templates - magento 2 custom phtml page -
having got myself acquainted (enough) magento 1.9, , able make customisations required, i've been told once it's out, we're moving magento v2.0. having found differences in file structure, believe can see place code custom pages use, how can add page project static block later use? previously, method used follows (i realise may not follow best practise, worked):
- create element folder within theme or core templates directory. eg.
/app/design/frontend/<theme>/default/template/myelement/mypage.phtml add page/element static block using following in content editor:
{{block type="<theme>/default" template="myelement/mypage.phtml"}}
this block can added category pages required.
in magento 2, have tried believe required, replicating file structure , adding phtml files this, template file resides in:
/app/code/<supplier>/<module>/view/frontend/templates/mypage.phtml adding content editor following:
{{block type="<supplier>/<module>" template="mypage.phtml"}} unfortunately, not display intended page (element). doesn't display calling "{{block" entry either, happens when line invalid, can assume i'm missing link template.
if can offer assistance this, grateful.
edit: continued research on has led me following assumptions:
- magento 2 requires more new .phtml page, simple customizations.
- i'm still missing something.....
having gone through 3 different tutorials on creating new modules magento 2, each providing different methods, fundamentally being same thing, have believe should code elements make new .phtml template display in static block.
this has led additional problem though. while have required code, cannot add module. adding module etc/config.php, suggested in 2 out of 3 tutorials, crashed m2, both admin , frontend when try clear cache. case after manually clearing cache folders in var directory.
also, still unable add .phtml template file static block or page using content editor.
not hair left pull out here, looking help! in advance