We have moved to Github. Please open tickets there.

#3805 closed Defect (worksforme)

1.8 viewtype css issue

Reported by: markharding Owned by:
Priority: normal Milestone: Needs Review
Component: Core Version: 1.8
Severity: minor Keywords:
Cc: brett@… Difficulty:

Description

I am in the process of upgrading my elgg mobile plugin to 1.8. I have swapped everything to the new theme layout but the css is not being loaded - http://mehmac.local/elgg/css/elgg.1315854670.css?view=mobile - it is completely blank.

Do you need to register the css for each view type or is it picked up automatically. I have simple and file view cache turned off.

Tried copying files from the default view to see if that works and no luck still.

Change History (4)

comment:1 Changed 21 months ago by markharding

  • Version changed from 1.7 to 1.8

comment:2 Changed 21 months ago by cash

It should pickup the views/mobile/css/elgg file automatically. I haven't tested this though.

comment:3 Changed 21 months ago by markharding

cash
it appears to be an issue with

// check if there is a theme overriding the old css view and use it, if it exists
$old_css_view = elgg_get_view_location('css');
if ($old_css_view != elgg_get_config('viewpath')) {
	echo elgg_view('css', $vars);
	return true;
}

commented it out and it shows no problem.

comment:4 Changed 20 months ago by cash

  • Resolution set to worksforme
  • Status changed from new to closed

I took a look at your plugin. I think the problem is that you are including a /views/mobile/css.php file in your plugin. You also don't need the code you mentioned above which I see you commented out.

Note: See TracTickets for help on using tickets.